Skip navigation
Currently Being Moderated

How to change play video immediately ?

May 7, 2012 4:18 AM

Hi

 

I'm using  Stream Class on Server side to play video.

 

It look like:  myStream.play("sample", 0, -1, true);

 

When server play streaming and publishing my "sample" file, maybe I need using another app call this app, stop playing and play other video ? And end-user view my streaming no interruptions when switch between 2 file video.

 

 

How can I do that ?

 

Mai Huy

 
Replies
  • Currently Being Moderated
    May 7, 2012 8:25 PM   in reply to Huy Mai

    I am not sure if i got your use case clearly but let me try to answer it. I think you just need to very simple thing.

     

     

    Whenever you want to change the video , call server-side function (either by some timer or some other server-side app or some other flash client) which in turn would make another play call.

     

     

    Example

     

     

    function changeVideo(){

     

     

    mystream.play("newvideo",0,-1,true);

     

     

    }

     

     

    You can chose last parameter to be "true" if you want new file to be played immediately or "false" if you want first file to be played fully and then second file playback.

     

     

     

     

    Your client would subscribe to stream by name which was used in Stream.get() when mystream was created.

     

     

     

     

    Let me know if you want me to elaborate more.

     
    |
    Mark as:
  • Currently Being Moderated
    May 12, 2012 8:11 AM   in reply to Huy Mai

    Always welcome

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points