Skip to main content
August 27, 2010
Question

Last few seconds of stream cut off when recording a live stream

  • August 27, 2010
  • 1 reply
  • 611 views

Hello,

I'm having a problem with recording a live webcam stream. The last few seconds of the stream is getting cut off.

The recording is stopped with the following piece of code:

            vid.attachCamera(null);
            vid.clear();
            ns.attachCamera(null);
            ns.attachAudio(null);
            ns.pause();

What could be causing this? Is the stream cut off too soon? Is the client unable to send buffered data to the server?

Kind regards,

FY

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    August 27, 2010

    I did not get your code properly , basically you never do ns.pause to stop the recording, you do ns.publish(false)

    August 27, 2010

    Thanks, I'll consider using ns.publish(false) . I've also managed to solve it using ns.close()

    FY