Skip to main content
January 13, 2013
Question

how would i do a playlist on fms

  • January 13, 2013
  • 1 reply
  • 416 views

Hi there on my fms i would like to get a playlist up so when the stream is not live, a playlist it going with the flv's  or f4v that ive uploaded how would i do this can i have advice please ?

thanks

gary

    This topic has been closed for replies.

    1 reply

    January 15, 2013

    Hi Gary,

    On the server side you could create a playlist in the application.onUnpublish function as follows :

    application.onUnpublish = function(){

      myStream = Stream.get("playlist");  

      myStream.play("sample",0,-1,true );

      myStream.play("mp4:sample1_150kbps.f4v", 0, -1, false);

    }

    Let me know if this helps.

    Thanks,

    Apurva