Skip to main content
Aug 27, 2010 10:38 AM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Participating Frequently
    Aug 27, 2010 3:34 PM UTC

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

    Translate
    Aug 27, 2010 7:51 PM UTC

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

    FY

    Translate