Skip to content

Commit 348b0c1

Browse files
author
dimaspirit
committed
cleanup
1 parent e7705a8 commit 348b0c1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

samples/webrtc/js/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
if(down) {
2424
recorder.download(blob, 'QB_WEBrtc_sample' + Date.now());
2525
}
26+
},
27+
onErrorRecording: function(error) {
28+
console.error('Recorder error', error);
29+
alert('Recored is failed' + error.message);
2630
}
2731
}
2832
};

src/modules/webrtc/qbRecorder.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* Doc: https://w3c.github.io/mediacapture-record/MediaRecorder.html
99
* Support: http://caniuse.com/#feat=mediarecorder (Firefox 47, Chrome 49, Opera 40)
1010
*
11+
* !NOTE:
12+
* 1. We recommend that you limit the duration of recording 3 minutes currently.
13+
* The long duration can lead to the crash of the tab.
14+
*
1115
* User's callbacks (listener-functions):
1216
* - onStartRecording
1317
* - onPauseRecording

0 commit comments

Comments
 (0)