RecordRTC
RecordRTC copied to clipboard
Recording state should be: "recording", however current state is: stopped
recorder=RecordRTC(localStream, { type: 'video' }); recorder.startRecording();
recorder1=RecordRTC(remoteStream, {
type: 'video'
});
recorder1.startRecording();
//working fine--------------------- recorder.stopRecording(function() { var blob = recorder.getBlob(); console.log(blob); postFiles(blob); });
but - Recording state should be: "recording", however current state is: stopped
recorder.stopRecording(function() { var blob1 = recorder1.getBlob(); console.log(blob1); postFiles(blob1); //blob is null
});
recorder=RecordRTC(localStream, {
type: 'video'
});
recorder.startRecording();
recorder1=RecordRTC(remoteStream, {
type: 'video'
});
recorder1.startRecording();
//working fine---------------------
recorder.stopRecording(function() {
var blob = recorder.getBlob();
console.log(blob);
postFiles(blob);
});
// but - Recording state should be: "recording", however current state is: stopped
recorder.stopRecording(function() {
var blob1 = recorder1.getBlob();
console.log(blob1);
postFiles(blob1); //blob is null
});
The only difference I see is localStream
vs remoteStream
- right?
I also got this error (in a code pen) - using my webcam - don't think that would make it a remote stream though, right?
I am experiencing this in angular where my recording doesnt get past 9 seconds and automatically stops, DOM says
Recording state should be: "recording", however current state is: stopped
please how do i get past this or forcefully continue the recording?