Stupid Question: Embedding FMS 3.5 videos in other pages...
Hi,
Stupid question, I am sure. But anyway, I have my shiny new FMS 3.5 server. There is the multi-rate example which provides a "Cut and Paste" object tag to embed the video.... e.g.
<object width='640' height='377' id='videoPlayer' name='videoPlayer' type='application/x-shockwave-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ><param name='movie' value='swfs/videoPlayer.swf' /> <param name='quality' value='high' /> <param name='bgcolor' value='#000000' /> <param name='allowfullscreen' value='true' /> <param name='flashvars' value= '&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=dynamicStream.smil&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=dynamicStream.smil&DS_Status=true&streamType=vod&autoStart=true'/><embed src='swfs/videoPlayer.swf' width='640' height='377' id='videoPlayer' quality='high' bgcolor='#000000' name='videoPlayer' allowfullscreen='true' pluginspage='http://www.adobe.com/go/getflashplayer' flashvars='&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=dynamicStream.smil&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=dynamicStream.smil&DS_Status=true&streamType=vod&autoStart=true' type='application/x-shockwave-flash'> </embed></object>
( cough )
I paste this into a web page hosted on another ( ordinary, nonFMS ) server, I see the player show up, but after 5 seconds I get message that the player cannot connect, please click Play to try again. Of course same work fine if the page is hosted out of webroot on the FMS server. So I assume the "example" does not include absolute URL's so I tried hacking in full URL's for the swfs/videoPlayer.swf and the rtmp:/ URLs to no avail. Which makes it a pretty poor "example" IMO. I also noticed that the .smil file itself also includes a relative URL to the vod app, I modified that as well - the object tags still works only when hosted from the /webroot folder.
So what should this "example" really look like with absolute URL's to use in a real way? Also is there some content protection mechanism which is preventing this from being embedded in other pages not hosted locally?
Thanks.
-- Bob
