@volcengine/veplayer-plugin 2.9.2 → 2.9.3-rc.1
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/esm/index.development.js +13 -9
- package/esm/index.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +13 -9
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.rtm.development.js +13 -9
- package/umd/veplayer.plugin.rtm.production.js +1 -1
package/package.json
CHANGED
|
@@ -6784,6 +6784,7 @@
|
|
|
6784
6784
|
_defineProperty$2(_assertThisInitialized$1(_this), "_mediaStream", null);
|
|
6785
6785
|
_defineProperty$2(_assertThisInitialized$1(_this), "_lastMediaStream", null);
|
|
6786
6786
|
_defineProperty$2(_assertThisInitialized$1(_this), "_media", null);
|
|
6787
|
+
_defineProperty$2(_assertThisInitialized$1(_this), "_player", null);
|
|
6787
6788
|
_defineProperty$2(_assertThisInitialized$1(_this), "_opts", null);
|
|
6788
6789
|
_defineProperty$2(_assertThisInitialized$1(_this), "_loader", null);
|
|
6789
6790
|
_defineProperty$2(_assertThisInitialized$1(_this), "_networkEvaluate", null);
|
|
@@ -6852,8 +6853,8 @@
|
|
|
6852
6853
|
return;
|
|
6853
6854
|
clearTimeout(_this._waitingTimer);
|
|
6854
6855
|
_this._waitingTimer = setTimeout(function() {
|
|
6855
|
-
var _this$
|
|
6856
|
-
if ((_this$
|
|
6856
|
+
var _this$_player;
|
|
6857
|
+
if ((_this$_player = _this._player) !== null && _this$_player !== void 0 && _this$_player.paused)
|
|
6857
6858
|
return;
|
|
6858
6859
|
_this.emit("waiting");
|
|
6859
6860
|
}, _this._opts.stallInterval);
|
|
@@ -7051,6 +7052,7 @@
|
|
|
7051
7052
|
});
|
|
7052
7053
|
_this._opts = getOption(opts);
|
|
7053
7054
|
_this._media = _this._opts.media;
|
|
7055
|
+
_this._player = _this._opts.player;
|
|
7054
7056
|
_this._loader = new NetLoader(_objectSpread2$2(_objectSpread2$2({}, opts.fetchOptions), {}, {
|
|
7055
7057
|
responseType: "json",
|
|
7056
7058
|
method: "POST",
|
|
@@ -7205,7 +7207,7 @@
|
|
|
7205
7207
|
value: function _handleMediaStream() {
|
|
7206
7208
|
var _this4 = this;
|
|
7207
7209
|
if (this._lastMediaStream) {
|
|
7208
|
-
var _this$
|
|
7210
|
+
var _this$_player$play;
|
|
7209
7211
|
var videoTrack = this._lastMediaStream.getVideoTracks()[0];
|
|
7210
7212
|
var audioTrack = this._lastMediaStream.getAudioTracks()[0];
|
|
7211
7213
|
if (videoTrack) {
|
|
@@ -7218,8 +7220,8 @@
|
|
|
7218
7220
|
this._audio && this._mediaStream.addTrack(this._audio);
|
|
7219
7221
|
this._video && this._mediaStream.addTrack(this._video);
|
|
7220
7222
|
this._isReplacing = true;
|
|
7221
|
-
this.
|
|
7222
|
-
(_this$
|
|
7223
|
+
this._player.pause();
|
|
7224
|
+
(_this$_player$play = this._player.play()) === null || _this$_player$play === void 0 ? void 0 : _this$_player$play.finally(function() {
|
|
7223
7225
|
_this4._isReplacing = false;
|
|
7224
7226
|
});
|
|
7225
7227
|
} else {
|
|
@@ -7227,7 +7229,7 @@
|
|
|
7227
7229
|
this._audio && this._mediaStream.addTrack(this._audio);
|
|
7228
7230
|
this._video && this._mediaStream.addTrack(this._video);
|
|
7229
7231
|
this._media.srcObject = this._mediaStream;
|
|
7230
|
-
var req = this.
|
|
7232
|
+
var req = this._player.play();
|
|
7231
7233
|
if (req && req.catch) {
|
|
7232
7234
|
req.catch(function(e) {
|
|
7233
7235
|
});
|
|
@@ -7719,11 +7721,11 @@
|
|
|
7719
7721
|
}, {
|
|
7720
7722
|
key: "destroy",
|
|
7721
7723
|
value: function destroy(keepClearMediaStream) {
|
|
7722
|
-
var _this$_revertVolumeWo, _this$
|
|
7724
|
+
var _this$_revertVolumeWo, _this$_media;
|
|
7723
7725
|
this._disconnect();
|
|
7724
7726
|
(_this$_revertVolumeWo = this._revertVolumeWorkaround) === null || _this$_revertVolumeWo === void 0 ? void 0 : _this$_revertVolumeWo.call(this);
|
|
7725
7727
|
delete this._revertVolumeWorkaround;
|
|
7726
|
-
(_this$
|
|
7728
|
+
(_this$_media = this._media) === null || _this$_media === void 0 ? void 0 : _this$_media.removeEventListener("timeupdate", this._mockWaitingByTimeupdate);
|
|
7727
7729
|
if (this._media && !keepClearMediaStream) {
|
|
7728
7730
|
this._media.srcObject = null;
|
|
7729
7731
|
}
|
|
@@ -7732,6 +7734,7 @@
|
|
|
7732
7734
|
}
|
|
7733
7735
|
this._loader = null;
|
|
7734
7736
|
this._media = null;
|
|
7737
|
+
this._player = null;
|
|
7735
7738
|
this._pc = null;
|
|
7736
7739
|
this._opts = null;
|
|
7737
7740
|
}
|
|
@@ -7796,6 +7799,7 @@
|
|
|
7796
7799
|
_this._rtsOpts = rtsOpts;
|
|
7797
7800
|
_this._rts = new Rts(_objectSpread2$2({
|
|
7798
7801
|
media: _this.player.video,
|
|
7802
|
+
player: _this.player,
|
|
7799
7803
|
mediaStream: _this._mediaStream,
|
|
7800
7804
|
preProcessUrl: function preProcessUrl(url, ext) {
|
|
7801
7805
|
var _this$player$preProce, _this$player;
|
|
@@ -7858,7 +7862,7 @@
|
|
|
7858
7862
|
}, {
|
|
7859
7863
|
key: "version",
|
|
7860
7864
|
get: function get() {
|
|
7861
|
-
return "0.2.1-alpha.
|
|
7865
|
+
return "0.2.1-alpha.47";
|
|
7862
7866
|
}
|
|
7863
7867
|
}, {
|
|
7864
7868
|
key: "beforePlayerInit",
|