Very strange SMIL problem
We have two servers - one stores the media files and runs FMS. The other creates dynamic webpages. I have edited the 'dynamic stream' SMIL example on the media server, to include a full URL:
<smil>
<head>
<meta base="rtmp://mymediaserver.com/vod" />
</head>
<body>
<switch>
<video src="mp4:sample1_150kbps.f4v" system-bitrate="150000"/>
<video src="mp4:sample1_500kbps.f4v" system-bitrate="500000"/>
<video src="mp4:sample1_700kbps.f4v" system-bitrate="700000"/>
<video src="mp4:sample1_1000kbps.f4v" system-bitrate="1000000"/>
<video src="mp4:sample1_1500kbps.f4v" system-bitrate="1500000"/>
</switch>
</body>
</smil>
If I open the standard FMS index page, the 'dynamic stream' example works fine. However, if I copy that code over to a page on my webpage server (linking back to the media server of course), I get a 'connection error'. The weird part though is that if I limit the 'switches' in the SMIL file to just one video, it works again, eg:
<smil>
<head>
<meta base="rtmp://mymediaserver.com/vod" />
</head>
<body>
<switch>
<video src="mp4:sample1_150kbps.f4v" system-bitrate="150000"/>
</switch>
</body>
</smil>
It makes no difference which file I choose, as long as there is just one.
I am using the same video player that all the examples use (FMS 3.5), so my thought is that something in that player is causing a cross domain security exception when it has more than one stream to choose from. I tried disabling the firewall, so it's not that, and I updated server.xml to point to a custom crossdomain.xml file:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*.mywebpageserver.com" />
</cross-domain-policy>
But that doesn't seem to have had any effect.
Any ideas?
Thanks,
Karl
