Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Hi,
Thank for ur response. I got it. Once again i thank u.
Regards
Saransoft