Skip to main content
May 13, 2011
Answered

Is there Windows Media Script Command Equivalent in FMS?

  • May 13, 2011
  • 2 replies
  • 1174 views

I am looking to stop using windows media encoder for my live streams.  I have used this encoder for years alongside a windows media server in order to present live meetings and use script commands to change the html page source for a particular frame on a webpage.  It works well but only in IE and only on a PC.  I would like to provide support for other browsers and other platforms (ipad etc).   FMS seems like a good solution alongside JW Player, but I cannot figure out if I would be able to run this script commands live that will alter the frame on the page that hosts jpgs.

Any thoughts?

Thanks.

    This topic has been closed for replies.
    Correct answer

    Not built-in. You would need to develop 3 applications for this:

    1. A client side "controller" application that sends information to the server about what URL should be loaded into the 'main" frame.

    2. A client side playback application that shows the video and receives/handles messages from the server about what should be loaded into the "main" frame.

    3. A server side application to receive messages from the controller and relay them to the playback app.

    1 & 2 would be flash or flex applications. #3 would be server side actionscript.

    I should also mention that this will only work for Flash Media Interactive Server. Streaming server does not support server side scripting.

    2 replies

    May 16, 2011

    Also, keep in mind that the current release of FMS does not support HTTP streaming for apple devices. Word is that a future release will, but that's not the case today.

    Also, the current quicktime implementation in iDevices does not expose an API or do any sort of javascript callouts to handle id3 data, so (as far as i know) there is no way to sync events to a live stream in the browser environment on ipad. Since the HLS spec results in anywhere from 10 to 30 seconds of delay on live streams, it would be difficult (if not impossible) to sync your events to the stream, unless you choose the path of a native application (native apps have more access to id3 events)

    May 16, 2011

    Thanks.  There is some helpful info here.  I may not have been clear enough in my original question however. 

    The way we webcast now, we use Windows Media Encoder.  In the streaming session GUI there is a script panel which allows us to enter an HTTP address which will change the source page for a particular frame in the page.  IE:

    http://my.webcast.com/slides/slide55.htm&&main where main is a frame hosting slides from a power point presentation (jpgs hosted on a server).  The "main" frame is a seperate frame from the "video" frame which has an embedded windows media player streaming live content pushed to a windows media server. 

    The issue is that this method (as we have it coded) only works in IE, as firefox/opera/safari et al do not recognize the frame in the URL and will call up the "slide55.htm" in the "video" frame, thus overwriting the live video stream.

    Naturally, Flash Media Server will be better able to broadcast flv or mp4 encoded video which can be seen on mac or pc and by most browsers, but is there a similar URL targeting function as the one I laid out above?

    Correct answer
    May 16, 2011

    Not built-in. You would need to develop 3 applications for this:

    1. A client side "controller" application that sends information to the server about what URL should be loaded into the 'main" frame.

    2. A client side playback application that shows the video and receives/handles messages from the server about what should be loaded into the "main" frame.

    3. A server side application to receive messages from the controller and relay them to the playback app.

    1 & 2 would be flash or flex applications. #3 would be server side actionscript.

    I should also mention that this will only work for Flash Media Interactive Server. Streaming server does not support server side scripting.

    Nikhil_Kalyan
    Participating Frequently
    May 16, 2011

    Hi,

    Thanks for your interest for FMS.

    Yes, FMS should be able to perfectly fit in your scenario where you want to feed live streams on your web pages from the FMS server behind. I am not completely sure of what kind of scripts you are mentioning here, but if its just a HTML-Flash player interaction for your live streams, i think it should be fairly possible.


    Let us know if you know more information.

    Thank you !