@volcengine/veplayer-plugin 2.6.0-rc.2 → 2.6.0-rc.3
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
|
@@ -12894,11 +12894,11 @@ var Scte35Manager = /* @__PURE__ */ function() {
|
|
|
12894
12894
|
});
|
|
12895
12895
|
_defineProperty$3(this, "_onReady", function() {
|
|
12896
12896
|
_this._changeActiveAdBreakStatus("READY", null);
|
|
12897
|
-
_this._player.off(
|
|
12898
|
-
_this.
|
|
12897
|
+
_this._player.off(AD_ERROR, _this._onReady);
|
|
12898
|
+
_this._player.off(AD_ALL_COMPLETED, _this._onReady);
|
|
12899
12899
|
_this._player.on(TIME_UPDATE, _this._handleTimeUpdate);
|
|
12900
|
-
_this._player.on(
|
|
12901
|
-
_this._player.on(
|
|
12900
|
+
_this._player.on(AD_ALL_COMPLETED, _this._onAdComplete);
|
|
12901
|
+
_this._player.on(AD_ERROR, _this._onAdError);
|
|
12902
12902
|
_this._handleTimeUpdate();
|
|
12903
12903
|
});
|
|
12904
12904
|
_defineProperty$3(this, "_onAdComplete", function() {
|
|
@@ -13012,7 +13012,7 @@ var Scte35Manager = /* @__PURE__ */ function() {
|
|
|
13012
13012
|
this._player.on("core_event", this._handleHlsCoreEvent);
|
|
13013
13013
|
var _this$_adManager$conf = this._adManager.config, adsRequest = _this$_adManager$conf.adsRequest, adsResponse = _this$_adManager$conf.adsResponse, adTagUrl = _this$_adManager$conf.adTagUrl;
|
|
13014
13014
|
if (adsRequest || adsResponse || adTagUrl) {
|
|
13015
|
-
this._player.once(
|
|
13015
|
+
this._player.once(AD_ERROR, this._onReady);
|
|
13016
13016
|
this._player.once(AD_ALL_COMPLETED, this._onReady);
|
|
13017
13017
|
} else {
|
|
13018
13018
|
this._onReady();
|
|
@@ -13275,8 +13275,11 @@ var AdsPlugin = /* @__PURE__ */ function(_XGAdsPlugin) {
|
|
|
13275
13275
|
}, {
|
|
13276
13276
|
key: "beforePlayerInit",
|
|
13277
13277
|
value: function beforePlayerInit() {
|
|
13278
|
-
var _this$config$ima;
|
|
13278
|
+
var _this$csManager, _this$config$ima;
|
|
13279
13279
|
var promise = _get$2(_getPrototypeOf$2(AdsPlugin2.prototype), "beforePlayerInit", this).call(this);
|
|
13280
|
+
(_this$csManager = this.csManager) === null || _this$csManager === void 0 ? void 0 : _this$csManager.once(IMA_SDK_LOAD_SUCCESS, function() {
|
|
13281
|
+
google.ima.settings.setDisableCustomPlaybackForIOS10Plus(true);
|
|
13282
|
+
});
|
|
13280
13283
|
if (this.config.enableSCTE35 && (_this$config$ima = this.config.ima) !== null && _this$config$ima !== void 0 && _this$config$ima.adTagUrlForSCTE35) {
|
|
13281
13284
|
this._scte35Manager = new Scte35Manager({
|
|
13282
13285
|
player: this.player,
|