Cannot play video over RTMPT
Hello all,
i have a linux machine with two NICs, one for Apache/PHP (port 80) and the other for FMS 4 (ports 1935, 80). I need to use RTMPT over port 80 due to our organization wireless network restrictions. I think i have set up everything right, but we cannot see any video using the wifi clients. Apparently, the problem disappears when opening the firewall and allowing port 1935 traffic.
I have passed the tests at http://www.flashcomguru.com/apps/port_test/index.cfm from my wireless development machine:
RTMP DEFAULT TimeOut
RTMP 80 Success
RTMP 443 Success
RTMP 1935 TimeOut
RTMPT DEFAULT Success
RTMPT 80 Success
RTMPT 443 Success
RTMPT 1935 Failed
I've also passed the test when using the LAN machine behind the opened firewall:
RTMP DEFAULT Success
RTMP 80 Success
RTMP 443 Success
RTMP 1935 Success
RTMPT DEFAULT Success
RTMPT 80 Success
RTMPT 443 Success
RTMPT 1935 Success
So it seems that i actually can do RTMPT. I'm using the default VOD service, but found no solution all over the internet on how to properly configure FMS to achieve this.
We have a custom Flex app to make video streaming. Our call seems like this:
rtmpt://142.210.27.19:80/vod/mp4:vid1.mp4
In my fms.ini i've got:
SERVER.HTTPD_ENABLED = true
ADAPTOR.HOSTPORT = 142.210.27.19:1935,80
HTTPPROXY.HOST =
In the Adaptor.xml, the relevant part i find is this:
<HTTPTunnel>
<Enable>true</Enable>
<NodeID></NodeID>
<IdlePostInterval>512</IdlePostInterval>
<IdleAckInterval>512</IdleAckInterval>
<IdleTimeout>60</IdleTimeout>
<MimeType>application/x-fcs</MimeType>
<WriteBufferSize>16</WriteBufferSize>
<SetCookie>false</SetCookie>
<Redirect enable="false" maxbuf="16384">
<Host port="80">:8080</Host>
<Host port="443">:8443</Host>
</Redirect>
<HttpProxy enable="true" maxbuf="16384">
<Host port="80">${HTTPPROXY.HOST}</Host>
</HttpProxy>
<NeedClose>true</NeedClose>
<MaxHeaderLineLength>1024</MaxHeaderLineLength>
<MaxPipelinedRequests>5</MaxPipelinedRequests>
<Edge name="Edge1">
<Enable>true</Enable>
<IdlePostInterval>512</IdlePostInterval>
<IdleAckInterval>512</IdleAckInterval>
<MimeType>application/x-fcs</MimeType>
<WriteBufferSize>16</WriteBufferSize>
<SetCookie>false</SetCookie>
<Redirect enable="false" maxbuf="16384">
<Host port="80">:8080</Host>
<Host port="443">:8443</Host>
</Redirect>
<NeedClose>true</NeedClose>
<MaxWriteDelay>40</MaxWriteDelay>
<MaxPipelinedRequests>5</MaxPipelinedRequests>
</Edge>
</HTTPTunnel>
I really don't know where to look since by default, it should be auto-roll-back to RTMPT if it can't go RTMP. I'm also in doubt if this could be because our "smart wifi router" is inspecting and rejecting the packets even being tunneled.
I've executed Wireshark and i cannot see any streaming petition to port 80. All the traffic i see is for 1935 port. Moreover, when testing from inside the firewalled wifi network, it seems that no petition reach the FMS NIC, it seems that all the petitions are going through the Apache/PHP NIC on port 1935!!
I would really appreciate some point or advice on how to debug this, which logs to pay attention and so on.
Thank you so much,
Juan
