Skip to main content
October 27, 2009
Question

Stupid Question: Embedding FMS 3.5 videos in other pages...

  • October 27, 2009
  • 1 reply
  • 1238 views

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

    This topic has been closed for replies.

    1 reply

    October 27, 2009

    Hi Bob,

    I too have had many problems setting up FMS, and getting videos streaming.

    Your links to the swf files should be absolute, but the URL of the video should be relative to the vod app.

    I recommend getting another Flash Player such as Longtail (it's free and easier to use : http://www.longtailvideo.com/ )

    Put the Longtail files on your server, and then you can reference one of the sample videos like so:

    &streamer=rtmp:/vod/&file=mp4:sample1_150kbps.f4v

    Good luck, I know it hasn't been easy to get this going.

    karma_koan
    Inspiring
    July 16, 2010

    Having the same problem, with no answer in sight. Others have suggested, as you have, to use a third party player. But why should it be so difficult to do this with the videoPlayer.swf file  that comes with FMS?

    Here's the page: http://www.librarymedia.net/Flash3/Newcode.html?source=rtmp://63.116.232.6/vod/mp4:Sports-BaseballvsDumont051010.mov

    The page based on Adobe's sample works, but the formatting is awful:

    http://www.librarymedia.net/Flash3/Recent.html?source=rtmp://63.116.232.6/vod/mp4:Sports-BaseballvsDumont051010.mov

    The FMS sample page says that the player has to be instantiated first. I have tried many different paths linking to the swfs/videoPlayer.swf file to no avail.I have also read these forums and scoured the internet.

    http://forums.adobe.com/message/2345877#2345877
    http://forums.adobe.com/message/2785126#2785126

    Should I just give up and use a third party player?

    July 16, 2010

    I see you have an HTTP server listening on 63.116.232.6, so keep in mind that FMS can't take connections on that port (so you have no chance of users connecting to FMS over port 80)

    Seems that I can't connect on port 1935 either. Do you have your firewall blocking port 1935?