You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using RecordRTC_Extension() API to control recording using HTML elements on web page. E.g.
varrecorder=newRecordRTC_Extension();document.getElementById('btn-start-recording').onclick=function(){recorder.startRecording({enableTabCaptureAPI: true,});});document.getElementById('btn-stop-recording').onclick=function(){recorder.stopRecording(function(blob){//do something with blob});});
Works good!
But, suppose user action causes page to reload due to design of web app. After page reloads, the above code runs again, but recorder.stopRecording() does not stop the extension from recording. Instead, recording just continues.
I guess that new instance of var recorder = new RecordRTC_Extension() is somehow the problem? How to re-connect to extension to trigger stop?
The text was updated successfully, but these errors were encountered:
Yes, that will work to stop recording before page reloads. But I want recording to continue while page reloads, and only stop when user clicks my stop button. But after page reload, my stop button does not work because "var recorder = new RecordRTC_Extension()" does not connect to same "instance" of extension. Maybe I am missing something?
I am using RecordRTC_Extension() API to control recording using HTML elements on web page. E.g.
Works good!
But, suppose user action causes page to reload due to design of web app. After page reloads, the above code runs again, but recorder.stopRecording() does not stop the extension from recording. Instead, recording just continues.
I guess that new instance of var recorder = new RecordRTC_Extension() is somehow the problem? How to re-connect to extension to trigger stop?
The text was updated successfully, but these errors were encountered: