My firewall only allows me to stream from port 80 on my streaming server, but I would like most users to connect to the standard RTMP port. I'm trying to use the cluster plugin to try each connection method in order.
The problem is probably that I can connect to the standard port, but because of the firewall I can't stream from it. The player connects to the first host, shows the message
These are the relevant parts (I think) of my code:
If I change the first rtmp://1.2.3.4/live to rtmp://1.2.3.4:9999/live or some other port that does not respond at all the connect fails, then the player tries the next host line and everything works fine.
The problem is probably that I can connect to the standard port, but because of the firewall I can't stream from it. The player connects to the first host, shows the message
200, Stream not found, NetStream.Play.StreamNotFound, clip:'[Clip] 'cam
and then tries to connect to the first host again.These are the relevant parts (I think) of my code:
flowplayer("cam", "/gmaps/flowplayer31/flowplayer-3.1.0.swf", {
clip: {
autoPlay: 'true',
provider: 'rtmp',
url: 'cam',
connectionProvider: 'cluster'
},
play: {
},
// streaming plugins are configured under the plugins node
plugins: {
rtmp: {
url: 'flowplayer.rtmp-3.1.0.swf',
live: true
},
cluster: {
url: 'flowplayer.cluster-3.1.0.swf',
connectTimeout: 500,
hosts: [
{host: 'rtmp://1.2.3.4/live'},
{host: 'rtmp://1.2.3.4:80/live'},
{host: 'rtmpt://1.2.3.4/live'},
{host: 'rtmpt://1.2.3.4:80/live'}
],
If I change the first rtmp://1.2.3.4/live to rtmp://1.2.3.4:9999/live or some other port that does not respond at all the connect fails, then the player tries the next host line and everything works fine.