MediaStreamRecorder
MediaStreamRecorder copied to clipboard
Stop recording on firefox without stopping the stream
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