Skip to content

Commit

Permalink
Now using captureStream API for Chrome52+ (Fixed #138)
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Jun 24, 2016
1 parent 903c4c3 commit 42bfeef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions RecordRTC.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

// Last time updated: 2016-06-24 7:36:34 PM UTC
// Last time updated: 2016-06-24 10:48:46 PM UTC

// Open-Sourced: https://github.com/muaz-khan/RecordRTC

Expand Down Expand Up @@ -1678,8 +1678,7 @@ function MediaStreamRecorder(mediaStream, config) {
// "Reading Thread" are used to prevent main-thread blocking scenarios
try {
mediaRecorder = new MediaRecorder(mediaStream, recorderHints);
}
catch(e) {
} catch (e) {
mediaRecorder = new MediaRecorder(mediaStream);
}

Expand Down Expand Up @@ -1787,7 +1786,7 @@ function MediaStreamRecorder(mediaStream, config) {
this.recordingCallback = function(blob) {
mediaRecorder = null;

if(callback) {
if (callback) {
callback(blob);
}
};
Expand Down Expand Up @@ -2480,7 +2479,7 @@ function CanvasRecorder(htmlElement, config) {
chromeVersion = parseInt(matchArray[2], 10);
}

if ((!!window.webkitRTCPeerConnection || !!window.webkitGetUserMedia) && chromeVersion < 53) {
if ((!!window.webkitRTCPeerConnection || !!window.webkitGetUserMedia) && chromeVersion < 52) {
isCanvasSupportsStreamCapturing = false;
}

Expand Down
Loading

0 comments on commit 42bfeef

Please sign in to comment.