augnitorecorder
Advanced tools
Comparing version 1.0.32 to 1.0.33
@@ -1052,15 +1052,11 @@ function _regeneratorRuntime() { | ||
case 0: | ||
if (!this.isStreaming) { | ||
_context8.next = 9; | ||
break; | ||
} | ||
if (!(this.audioContext.state !== "suspended")) { | ||
_context8.next = 5; | ||
_context8.next = 4; | ||
break; | ||
} | ||
_context8.next = 4; | ||
_context8.next = 3; | ||
return this.audioContext.suspend(); | ||
case 3: | ||
this.onStateChanged(false); | ||
case 4: | ||
this.onStateChanged(false); | ||
case 5: | ||
this.log("Stream stopped..."); | ||
@@ -1071,3 +1067,3 @@ this.isStreaming = false; | ||
(_this$processorNode = this.processorNode) === null || _this$processorNode === void 0 || (_this$processorNode = _this$processorNode.port) === null || _this$processorNode === void 0 || _this$processorNode.postMessage(STOP_MSG); | ||
case 9: | ||
case 8: | ||
case "end": | ||
@@ -1252,5 +1248,8 @@ return _context8.stop(); | ||
var shouldSendEOS = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; | ||
(_this$streamer = this.streamer) === null || _this$streamer === void 0 || _this$streamer.StopStream(shouldSendEOS); | ||
this.streamer = null; | ||
this.log("Stream Stopped..."); | ||
if ((_this$streamer = this.streamer) !== null && _this$streamer !== void 0 && _this$streamer.IsStreaming) { | ||
var _this$streamer2; | ||
(_this$streamer2 = this.streamer) === null || _this$streamer2 === void 0 || _this$streamer2.StopStream(shouldSendEOS); | ||
this.streamer = null; | ||
this.log("Stream Stopped..."); | ||
} | ||
} | ||
@@ -1257,0 +1256,0 @@ }, { |
{ | ||
"name": "augnitorecorder", | ||
"version": "1.0.32", | ||
"version": "1.0.33", | ||
"description": "Audio recorder and streamer compatible with any browser", | ||
@@ -5,0 +5,0 @@ "main": "dist/augnitoRecorder.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
130868
1368