@byteplus/veplayer-plugin 2.6.0-rc.3 → 2.6.0-rc.4
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 +9 -6
- package/esm/index.production.js +1 -1
- package/esm/veplayer.plugin.ad.development.js +9 -6
- package/esm/veplayer.plugin.ad.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.ad.development.js +9 -6
- package/umd/veplayer.plugin.ad.production.js +1 -1
package/package.json
CHANGED
|
@@ -12898,11 +12898,11 @@
|
|
|
12898
12898
|
});
|
|
12899
12899
|
_defineProperty$3(this, "_onReady", function() {
|
|
12900
12900
|
_this._changeActiveAdBreakStatus("READY", null);
|
|
12901
|
-
_this._player.off(
|
|
12902
|
-
_this.
|
|
12901
|
+
_this._player.off(AD_ERROR, _this._onReady);
|
|
12902
|
+
_this._player.off(AD_ALL_COMPLETED, _this._onReady);
|
|
12903
12903
|
_this._player.on(TIME_UPDATE, _this._handleTimeUpdate);
|
|
12904
|
-
_this._player.on(
|
|
12905
|
-
_this._player.on(
|
|
12904
|
+
_this._player.on(AD_ALL_COMPLETED, _this._onAdComplete);
|
|
12905
|
+
_this._player.on(AD_ERROR, _this._onAdError);
|
|
12906
12906
|
_this._handleTimeUpdate();
|
|
12907
12907
|
});
|
|
12908
12908
|
_defineProperty$3(this, "_onAdComplete", function() {
|
|
@@ -13016,7 +13016,7 @@
|
|
|
13016
13016
|
this._player.on("core_event", this._handleHlsCoreEvent);
|
|
13017
13017
|
var _this$_adManager$conf = this._adManager.config, adsRequest = _this$_adManager$conf.adsRequest, adsResponse = _this$_adManager$conf.adsResponse, adTagUrl = _this$_adManager$conf.adTagUrl;
|
|
13018
13018
|
if (adsRequest || adsResponse || adTagUrl) {
|
|
13019
|
-
this._player.once(
|
|
13019
|
+
this._player.once(AD_ERROR, this._onReady);
|
|
13020
13020
|
this._player.once(AD_ALL_COMPLETED, this._onReady);
|
|
13021
13021
|
} else {
|
|
13022
13022
|
this._onReady();
|
|
@@ -13279,8 +13279,11 @@
|
|
|
13279
13279
|
}, {
|
|
13280
13280
|
key: "beforePlayerInit",
|
|
13281
13281
|
value: function beforePlayerInit() {
|
|
13282
|
-
var _this$config$ima;
|
|
13282
|
+
var _this$csManager, _this$config$ima;
|
|
13283
13283
|
var promise = _get$2(_getPrototypeOf$2(AdsPlugin2.prototype), "beforePlayerInit", this).call(this);
|
|
13284
|
+
(_this$csManager = this.csManager) === null || _this$csManager === void 0 ? void 0 : _this$csManager.once(IMA_SDK_LOAD_SUCCESS, function() {
|
|
13285
|
+
google.ima.settings.setDisableCustomPlaybackForIOS10Plus(true);
|
|
13286
|
+
});
|
|
13284
13287
|
if (this.config.enableSCTE35 && (_this$config$ima = this.config.ima) !== null && _this$config$ima !== void 0 && _this$config$ima.adTagUrlForSCTE35) {
|
|
13285
13288
|
this._scte35Manager = new Scte35Manager({
|
|
13286
13289
|
player: this.player,
|