@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteplus/veplayer-plugin",
3
- "version": "2.6.0-rc.3",
3
+ "version": "2.6.0-rc.4",
4
4
  "main": "./umd/index.production.js",
5
5
  "module": "./esm/index.production.js",
6
6
  "browser": "./umd/index.production.js",
@@ -12898,11 +12898,11 @@
12898
12898
  });
12899
12899
  _defineProperty$3(this, "_onReady", function() {
12900
12900
  _this._changeActiveAdBreakStatus("READY", null);
12901
- _this._player.off(IMA_AD_ERROR, _this._onReady);
12902
- _this._adManager.off(AD_ALL_COMPLETED, _this._onReady);
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(IMA_AD_COMPLETE, _this._onAdComplete);
12905
- _this._player.on(IMA_AD_ERROR, _this._onAdError);
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(IMA_AD_ERROR, this._onReady);
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,