Skip to content

Commit

Permalink
Grunt #504
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Feb 26, 2020
1 parent 0d617d0 commit 71d6599
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
15 changes: 8 additions & 7 deletions RecordRTC.js
@@ -1,6 +1,6 @@
'use strict';

// Last time updated: 2019-06-24 7:56:58 AM UTC
// Last time updated: 2020-02-26 1:11:47 PM UTC

// ________________
// RecordRTC v5.5.9
Expand Down Expand Up @@ -2899,18 +2899,18 @@ function StereoAudioRecorder(mediaStream, config) {
});
};

if (typeof Storage === 'undefined') {
var Storage = {
if (typeof RecordRTC.Storage === 'undefined') {
RecordRTC.Storage = {
AudioContextConstructor: null,
AudioContext: window.AudioContext || window.webkitAudioContext
};
}

if (!Storage.AudioContextConstructor) {
Storage.AudioContextConstructor = new Storage.AudioContext();
if (!RecordRTC.Storage.AudioContextConstructor || RecordRTC.Storage.AudioContextConstructor.state === 'closed') {
RecordRTC.Storage.AudioContextConstructor = new RecordRTC.Storage.AudioContext();
}

var context = Storage.AudioContextConstructor;
var context = RecordRTC.Storage.AudioContextConstructor;

// creates an audio node from the microphone incoming stream
var audioInput = context.createMediaStreamSource(mediaStream);
Expand Down Expand Up @@ -4808,6 +4808,7 @@ function GifRecorder(mediaStream, config) {
var video = document.createElement('video');
video.muted = true;
video.autoplay = true;
video.playsInline = true;

isLoadedMetaData = false;
video.onloadedmetadata = function() {
Expand Down Expand Up @@ -5837,7 +5838,7 @@ function RecordRTCPromisesHandler(mediaStream, options) {
* internalRecorder.addStreams([newAudioStream]);
* internalRecorder.resetVideoStreams([screenStream]);
* }
* @returns {Object}
* @returns {Object}
*/
this.getInternalRecorder = function() {
return new Promise(function(resolve, reject) {
Expand Down

0 comments on commit 71d6599

Please sign in to comment.