Skip to content

Commit

Permalink
Added "audioContext.close" via muaz-khan#386
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Mar 2, 2018
1 parent a7c5b76 commit ae8a3d3
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion RecordRTC-to-PHP/save.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function selfInvoker()
$extension = pathinfo($filePath, PATHINFO_EXTENSION);
if (!$extension || empty($extension) || !in_array($extension, $allowed)) {
echo 'Invalid file extension: '.$extension;
continue;
return;
}

if (!move_uploaded_file($tempName, $filePath)) {
Expand Down
22 changes: 11 additions & 11 deletions RecordRTC.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';

// Last time updated: 2017-12-13 5:07:29 AM UTC
// Last time updated: 2018-03-02 2:58:16 AM UTC

// ________________
// RecordRTC v5.4.6
// RecordRTC v5.4.7

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

Expand Down Expand Up @@ -764,7 +764,7 @@ function RecordRTC(mediaStream, config) {
* @example
* alert(recorder.version);
*/
version: '5.4.6'
version: '5.4.7'
};

if (!this) {
Expand All @@ -782,7 +782,7 @@ function RecordRTC(mediaStream, config) {
return returnObject;
}

RecordRTC.version = '5.4.6';
RecordRTC.version = '5.4.7';

if (typeof module !== 'undefined' /* && !!module.exports*/ ) {
module.exports = RecordRTC;
Expand Down Expand Up @@ -1950,8 +1950,7 @@ function isMediaRecorderCompatible() {
* bitsPerSecond: 256 * 8 * 1024, // if this is provided, skip above two
* checkForInactiveTracks: true,
* timeSlice: 1000, // concatenate intervals based blobs
* ondataavailable: function() {}, // get intervals based blobs
* ignoreMutedMedia: true
* ondataavailable: function() {} // get intervals based blobs
* }
* var recorder = new MediaStreamRecorder(mediaStream, config);
* recorder.record();
Expand Down Expand Up @@ -2079,9 +2078,6 @@ function MediaStreamRecorder(mediaStream, config) {
}
}

// ignore muted/disabled/inactive tracks
mediaRecorder.ignoreMutedMedia = config.ignoreMutedMedia === true;

// Dispatching OnDataAvailable Handler
mediaRecorder.ondataavailable = function(e) {
if (e.data) {
Expand Down Expand Up @@ -4746,10 +4742,10 @@ if (typeof RecordRTC !== 'undefined') {
RecordRTC.GifRecorder = GifRecorder;
}

// Last time updated: 2017-09-26 7:19:00 AM UTC
// Last time updated: 2018-03-02 2:56:28 AM UTC

// ________________________
// MultiStreamsMixer v1.0.3
// MultiStreamsMixer v1.0.5

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

Expand Down Expand Up @@ -5167,6 +5163,10 @@ function MultiStreamsMixer(arrayOfMediaStreams) {
self.audioDestination = null;
}

if (self.audioContext) {
self.audioContext.close();
}

self.audioContext = null;

context.clearRect(0, 0, canvas.width, canvas.height);
Expand Down
10 changes: 5 additions & 5 deletions RecordRTC.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "recordrtc",
"version": "5.4.6",
"version": "5.4.7",
"authors": [
{
"name": "Muaz Khan",
Expand Down
6 changes: 1 addition & 5 deletions dev/MediaStreamRecorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
* bitsPerSecond: 256 * 8 * 1024, // if this is provided, skip above two
* checkForInactiveTracks: true,
* timeSlice: 1000, // concatenate intervals based blobs
* ondataavailable: function() {}, // get intervals based blobs
* ignoreMutedMedia: true
* ondataavailable: function() {} // get intervals based blobs
* }
* var recorder = new MediaStreamRecorder(mediaStream, config);
* recorder.record();
Expand Down Expand Up @@ -145,9 +144,6 @@ function MediaStreamRecorder(mediaStream, config) {
}
}

// ignore muted/disabled/inactive tracks
mediaRecorder.ignoreMutedMedia = config.ignoreMutedMedia === true;

// Dispatching OnDataAvailable Handler
mediaRecorder.ondataavailable = function(e) {
if (e.data) {
Expand Down
8 changes: 6 additions & 2 deletions dev/MultiStreamsMixer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Last time updated: 2017-09-26 7:19:00 AM UTC
// Last time updated: 2018-03-02 2:56:28 AM UTC

// ________________________
// MultiStreamsMixer v1.0.3
// MultiStreamsMixer v1.0.5

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

Expand Down Expand Up @@ -419,6 +419,10 @@ function MultiStreamsMixer(arrayOfMediaStreams) {
self.audioDestination = null;
}

if (self.audioContext) {
self.audioContext.close();
}

self.audioContext = null;

context.clearRect(0, 0, canvas.width, canvas.height);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "recordrtc",
"preferGlobal": false,
"version": "5.4.6",
"version": "5.4.7",
"author": {
"name": "Muaz Khan",
"email": "muazkh@gmail.com",
Expand Down

0 comments on commit ae8a3d3

Please sign in to comment.