Skip to main content
June 27, 2009
Question

Video Streaming flush

  • June 27, 2009
  • 1 reply
  • 835 views

Hi Everyone,

     In streaming video player, the related video appear after the end of the one video (using flush). Even i pause the video the flush called and related video appears, but i need after the end of the video.

     Anyone knows...help me..

     Thank in advance..

Regards

Saravanan.T

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    June 30, 2009

    I didnt get you problem to the dot. But let me just give it a try. What you are saying new video plays as soon as NetStream is flushed. Probabaly the code you have issues new play when it recieves "NetStream.Buffer.Flush".  What you have to do is , issue play for new video only when you get "NetStream.Buffer.Flush" after you have got "NetStream.Play.Stop" i.e. keep track of "NetStream.Play.Stop" and set some flag say stopFlag to true and when you get "NetStream.Buffer.Flush" check if stopFlag is true, if yes issue new play else do nothing. Better would be you issue play after you get following sequence - NetStream.Play.Stop -> NetStream.Buffer.Flush -> NetStream.Buffer.Empty -> issue play for new video.

    Hope this answers your question.

    July 1, 2009

    Hi,

         Thank for ur response. I got it. Once again i thank u.

    Regards

    Saransoft