[Red5] how to make RTMP listen on 2 ports?

Mondain mondain at gmail.com
Sun Apr 27 10:08:29 PDT 2008


There is no reason to setup RTMP on an additional port, by default it will
bind to 1935. To make sure that RTMPT is available on port 80 and / or 443
you simply need to do two things:
1. add the RTMPT servlet to your applications web.xml
2. change the http and https port properties in the red5.properties file

This is the section to add to your web.xml

    <servlet>
        <servlet-name>rtmpt</servlet-name>
        <servlet-class>
            org.red5.server.net.rtmpt.RTMPTServlet
        </servlet-class>
        <load-on-startup>2</load-on-startup>
    </servlet>

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

    <servlet-mapping>
        <servlet-name>rtmpt</servlet-name>
        <url-pattern>/idle/*</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>/close/*</url-pattern>
    </servlet-mapping>

Paul

On Sun, Apr 27, 2008 at 7:38 AM, vitalyk <vitalyk at gmail.com> wrote:

>
> I need this to properly support fallback on both new and old clients.
> According to
> http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16631
> when given connection uri of rtmp://domain.com/
>
> old clients will try RTMP 1935, then 443, then 80
> new clients will try RTMP 1935, then RTMPT port 80
>
> So it seems that to support max fallback capability I'll need RTMP on 1925
> and 443 AND RTMTP on 80
>
> Please help, my previous message was left unanswered, but I think the
> topic
> might be of interest to anyone doing production deployment of red5.
>
> Thanks in advance.
>   /V
> --
> View this message in context:
> http://www.nabble.com/how-to-make-RTMP-listen-on-2-ports--tp16924478p16924478.html
> Sent from the Red5 - English mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>



-- 
It is difficult to free fools from the chains they revere. - Voltaire
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080427/631db916/attachment.html 


More information about the Red5 mailing list