@besovideo/webrtc-player 0.9.84 → 0.9.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.browser.js +17 -6
- package/dist/main.es.js +17 -6
- package/package.json +1 -1
package/dist/main.browser.js
CHANGED
|
@@ -117,7 +117,7 @@ var bvPlayerCore = (() => {
|
|
|
117
117
|
var define_processenv_default;
|
|
118
118
|
var init_define_processenv = __esm({
|
|
119
119
|
"<define:processenv>"() {
|
|
120
|
-
define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.9.
|
|
120
|
+
define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.9.85", PROJECT_NAMESPACE: "bvplayer" };
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
|
|
@@ -21618,6 +21618,10 @@ registerProcessor('bv-audio-processor', BVAudioProcessor);
|
|
|
21618
21618
|
sampleRate: this.config.sampleRate
|
|
21619
21619
|
}).then((stream) => {
|
|
21620
21620
|
this.audioInput = this.context.createMediaStreamSource(stream);
|
|
21621
|
+
this.audioInput.releaseStream = () => {
|
|
21622
|
+
delete this.audioInput.releaseStream;
|
|
21623
|
+
stream.getTracks().forEach((item) => item.stop());
|
|
21624
|
+
};
|
|
21621
21625
|
}, (error2) => {
|
|
21622
21626
|
console.error(error2);
|
|
21623
21627
|
}).then(() => {
|
|
@@ -21634,6 +21638,9 @@ registerProcessor('bv-audio-processor', BVAudioProcessor);
|
|
|
21634
21638
|
this.recorder.disconnect();
|
|
21635
21639
|
if (this.context)
|
|
21636
21640
|
this.context.close();
|
|
21641
|
+
if (this.audioInput) {
|
|
21642
|
+
this.audioInput.releaseStream && this.audioInput.releaseStream();
|
|
21643
|
+
}
|
|
21637
21644
|
};
|
|
21638
21645
|
BVPcmRecorder.prototype.init = function() {
|
|
21639
21646
|
return __async(this, null, function* () {
|
|
@@ -22435,12 +22442,16 @@ registerProcessor('bv-audio-processor', BVAudioProcessor);
|
|
|
22435
22442
|
sdpFetcher,
|
|
22436
22443
|
container
|
|
22437
22444
|
);
|
|
22438
|
-
|
|
22439
|
-
|
|
22440
|
-
});
|
|
22441
|
-
bvInstance.addEventListener("destroy", () => {
|
|
22445
|
+
const handleDestory = () => {
|
|
22446
|
+
bvInstance.removeEventListener("destroy", handleDestory);
|
|
22442
22447
|
onDestroy2 && onDestroy2();
|
|
22443
|
-
}
|
|
22448
|
+
};
|
|
22449
|
+
bvInstance.addEventListener("destroy", handleDestory);
|
|
22450
|
+
const handleClose = () => {
|
|
22451
|
+
bvInstance.removeEventListener("close", handleClose);
|
|
22452
|
+
onClose && onClose();
|
|
22453
|
+
};
|
|
22454
|
+
bvInstance.addEventListener("close", handleClose);
|
|
22444
22455
|
const instance2 = {
|
|
22445
22456
|
open: () => __async(void 0, null, function* () {
|
|
22446
22457
|
logger_default.debug("BvWebrtc open");
|
package/dist/main.es.js
CHANGED
|
@@ -111,7 +111,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
111
111
|
var define_processenv_default;
|
|
112
112
|
var init_define_processenv = __esm({
|
|
113
113
|
"<define:processenv>"() {
|
|
114
|
-
define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.9.
|
|
114
|
+
define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.9.85", PROJECT_NAMESPACE: "bvplayer" };
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
|
|
@@ -21602,6 +21602,10 @@ BVPcmRecorder.prototype.start = function() {
|
|
|
21602
21602
|
sampleRate: this.config.sampleRate
|
|
21603
21603
|
}).then((stream) => {
|
|
21604
21604
|
this.audioInput = this.context.createMediaStreamSource(stream);
|
|
21605
|
+
this.audioInput.releaseStream = () => {
|
|
21606
|
+
delete this.audioInput.releaseStream;
|
|
21607
|
+
stream.getTracks().forEach((item) => item.stop());
|
|
21608
|
+
};
|
|
21605
21609
|
}, (error2) => {
|
|
21606
21610
|
console.error(error2);
|
|
21607
21611
|
}).then(() => {
|
|
@@ -21618,6 +21622,9 @@ BVPcmRecorder.prototype.stop = function() {
|
|
|
21618
21622
|
this.recorder.disconnect();
|
|
21619
21623
|
if (this.context)
|
|
21620
21624
|
this.context.close();
|
|
21625
|
+
if (this.audioInput) {
|
|
21626
|
+
this.audioInput.releaseStream && this.audioInput.releaseStream();
|
|
21627
|
+
}
|
|
21621
21628
|
};
|
|
21622
21629
|
BVPcmRecorder.prototype.init = function() {
|
|
21623
21630
|
return __async(this, null, function* () {
|
|
@@ -22419,12 +22426,16 @@ var BvWebrtc = (props) => {
|
|
|
22419
22426
|
sdpFetcher,
|
|
22420
22427
|
container
|
|
22421
22428
|
);
|
|
22422
|
-
|
|
22423
|
-
|
|
22424
|
-
});
|
|
22425
|
-
bvInstance.addEventListener("destroy", () => {
|
|
22429
|
+
const handleDestory = () => {
|
|
22430
|
+
bvInstance.removeEventListener("destroy", handleDestory);
|
|
22426
22431
|
onDestroy2 && onDestroy2();
|
|
22427
|
-
}
|
|
22432
|
+
};
|
|
22433
|
+
bvInstance.addEventListener("destroy", handleDestory);
|
|
22434
|
+
const handleClose = () => {
|
|
22435
|
+
bvInstance.removeEventListener("close", handleClose);
|
|
22436
|
+
onClose && onClose();
|
|
22437
|
+
};
|
|
22438
|
+
bvInstance.addEventListener("close", handleClose);
|
|
22428
22439
|
const instance2 = {
|
|
22429
22440
|
open: () => __async(void 0, null, function* () {
|
|
22430
22441
|
logger_default.debug("BvWebrtc open");
|