Broken stopRecording using RecordRTC with Chrome
See original GitHub issuePrevious versions of Chrome worked fine, but the new version [Version 56.0.2924.87] seems to break/not execute the following line in stopRecording (note: still works fine in FF).
RecordRTC.js - line 107:
mediaRecorder.stop(_callback);
MediaRecorder object is created and defined as:
Object disableLogs:false
getNativeBlob:true
initCallback:null
mimeType:"video/webm"
type:"video"
But when it comes time to call recordRTC.stopRecording, Chrome stops executing after the (!== gif) check…
RecordRTC.js - Line 94:
function stopRecording(callback) {
if (!mediaRecorder) {
return console.warn(WARNING);
}
/*jshint validthis:true */
var recordRTC = this;
if (!config.disableLogs) {
console.warn('Stopped recording ' + config.type + ' stream.');
}
if (config.type !== 'gif') {
mediaRecorder.stop(_callback);
} else {
mediaRecorder.stop();
_callback();
}
function _callback(__blob) {
for (var item in mediaRecorder) {
if (self) {
self[item] = mediaRecorder[item];
}
Again, this works perfectly fine in FF, but has recently stopped working in Chrome.
Any suggestions or workarounds?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Audio+Video+Screen Recording using RecordRTC
The audio is distorted exactly after 30 seconds in Mac chrome browser alone. ... I press stop recording there are no options to...
Read more >Source: RecordRTC.js
Use this property on "stopRecording" to verify the encoder's sample-rates. ... Media Stream Recording API has not been implemented in chrome yet; ...
Read more >WebRTC : Chrome not recording video/audio - Stack Overflow
So the simplest solution for chrome is: record video as webm using first instance of RecordRTC . record audip as wav using second...
Read more >Issue 524281: Poor audio quality when running under Citrix ...
Open Chrome running in a Citrix virtualized environment 2. Attempt to send or record audio using a WebRTC application or something like ...
Read more >RTCMultiConnection.startRecording | This method is ...
Did you meant that, blobs.video in "stopRecording" callback is empty or NULL? ... In chrome, RecordRTC can record merely local-stream's audio; however in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks, that fixed the issue… The info you posted was for MediaStreamRecorder.js (which I’m assuming you’re developing more now?), so here’s the updated code to be stuck into RecordRTC.js at line 1771 for anyone who needs it:
@muaz-khan can this be closed?