On 5/24/07, vlad <[EMAIL PROTECTED]> wrote:


So here's where I got so far, if anyone is interested:

On apache2, in httpd.conf I enabled the following lines:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

Somewhere below I did:

<IfModule proxy_module>
    ProxyRequests Off
    ProxyPass /open  http://localhost:8080/red5/open
    ProxyPass /send  http://localhost:8080/red5/send
    ProxyPass /idle  http://localhost:8080/red5/idle
    ProxyPass /close http://localhost:8080/red5/close
</IfModule>

And I added the 4 servlet mappings besides the existing /rtmpt one in
red5's web.xml:

    <servlet-mapping>
        <servlet-name>rtmpt</servlet-name>
        <url-pattern>/open/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>rtmpt</servlet-name>
        <url-pattern>/close/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>rtmpt</servlet-name>
        <url-pattern>/send/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>rtmpt</servlet-name>
        <url-pattern>/idle/*</url-pattern>
    </servlet-mapping>




So, an update: I have next modified the
org.red5.server.net.rtmpt.RTMPTServlet class
so that, each time it needs a handler, instead of requesting it like this:

       RTMPTHandler handler = (RTMPTHandler)
getServletContext().getAttribute(
               RTMPTHandler.HANDLER_ATTRIBUTE);

instead it looks it up like this

       RTMPTHandler handler = (RTMPTHandler)appCtx.getBean("rtmptHandler");

Of course, this works only if you already have this bean in red5-core.xml:

   <bean id="rtmptHandler"
       class="org.red5.server.net.rtmpt.RTMPTHandler" autowire="byType">
       <property name="codecFactory" ref="rtmpCodecFactory" />
   </bean>

I hope this information is useful,
Vlad

p.s. and thanks for the great product, red5 team!
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to