Skip to content

Commit

Permalink
Added "autoContext.close" via muaz-khan/RecordRTC#386
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Mar 2, 2018
1 parent fa2f621 commit 364b546
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 6 additions & 2 deletions MultiStreamsMixer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Last time updated: 2017-09-27 9:40:20 AM UTC
// Last time updated: 2018-03-02 2:56:28 AM UTC

// ________________________
// MultiStreamsMixer v1.0.4
// 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
6 changes: 3 additions & 3 deletions MultiStreamsMixer.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dev/release-streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ this.releaseStreams = function() {
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": "multistreamsmixer",
"preferGlobal": true,
"version": "1.0.4",
"version": "1.0.5",
"author": {
"name": "Muaz Khan",
"email": "muazkh@gmail.com",
Expand Down

0 comments on commit 364b546

Please sign in to comment.