RecordRTC icon indicating copy to clipboard operation
RecordRTC copied to clipboard

Recording state should be: "recording", however current state is: stopped

Open Balram95 opened this issue 6 years ago • 2 comments

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

		});

Balram95 avatar Oct 16 '18 07:10 Balram95

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?

Julix91 avatar Jul 22 '20 05:07 Julix91

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?

orajiakuchibuchi avatar Oct 07 '22 14:10 orajiakuchibuchi