MediaStreamRecorder icon indicating copy to clipboard operation
MediaStreamRecorder copied to clipboard

Stop recording on firefox without stopping the stream

Open kevin-roda opened this issue 9 years ago • 0 comments

Hello everyone, I'm actually using MultiStreamRecorder for recording videos, i have an isssue only on firefox.

I want to stop the streaming recording so i use this code :

  document.querySelector('#stop-recording').onclick = function() {
        this.disabled = true;
        multiStreamRecorder.stop();
    };

instead of :

  document.querySelector('#stop-recording').onclick = function() {
        this.disabled = true;
        multiStreamRecorder.stop();
        multiStreamRecorder.stream.stop();
    };

My problem is that on chrome the code work and the stream recording stop immediately, but on firefox it stop after the end of the actual time interval.

So is there a best solution to stop recording without shutting the stream using : multiStreamRecorder.stream.stop();

thanks for you answers, kevin

kevin-roda avatar Mar 08 '16 08:03 kevin-roda