Skip to main content
May 10, 2010
Question

NetStream.Buffer.Flush not correct

  • May 10, 2010
  • 1 reply
  • 5006 views

I am recording video with fms and a webcam. For some reason the  NetStream.Buffer.Flush gets fired way before the end of the video. This  doesn't occur with other videos that I haven't recorded myself.

Is  this a normal thing or am I missing something essential regarding the  recording?

    This topic has been closed for replies.

    1 reply

    May 11, 2010

    Hi,

    NetStream.Buffer.Flush means that Data has finished streaming, and the remaining buffer will be emptied and so this may come before playback is completed. Does your stream completes playback without any freeze, I mean does it play till the very end of the recorded video?

    Thanks,

    Abhishek

    May 11, 2010

    The video plays just fine. The problem is that netStream.time is incorrect because NetStream.Buffer.Flush sets it to the duration somewhere in the middle of the video. Very annoying!

    May 13, 2010

    Ok, I sendt you a pm with a sample of what I'm trying to do, but after some testing it almost seems like the test is working At least it's harder to see some errors with the ns.time there.

    Looks like the problem is my recorder. I really don't understand how because it's more or less the same code. Anything in particular I have to take into consideration when recording?


    Hi,

    I browsed through your code and it doesn't seem to me there is any problem with the logic in recording. You said that when you tried locally with FMS you were able to make it work fine, is it right? I will try the code on my end too and see if there is any problem

    Thanks,

    Abhishek