@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/esm/index.development.js
CHANGED
|
@@ -77718,11 +77718,11 @@ var Scte35Manager = /* @__PURE__ */ function() {
|
|
|
77718
77718
|
});
|
|
77719
77719
|
_defineProperty$7(this, "_onReady", function() {
|
|
77720
77720
|
_this._changeActiveAdBreakStatus("READY", null);
|
|
77721
|
-
_this._player.off(
|
|
77722
|
-
_this.
|
|
77721
|
+
_this._player.off(AD_ERROR, _this._onReady);
|
|
77722
|
+
_this._player.off(AD_ALL_COMPLETED, _this._onReady);
|
|
77723
77723
|
_this._player.on(TIME_UPDATE, _this._handleTimeUpdate);
|
|
77724
|
-
_this._player.on(
|
|
77725
|
-
_this._player.on(
|
|
77724
|
+
_this._player.on(AD_ALL_COMPLETED, _this._onAdComplete);
|
|
77725
|
+
_this._player.on(AD_ERROR, _this._onAdError);
|
|
77726
77726
|
_this._handleTimeUpdate();
|
|
77727
77727
|
});
|
|
77728
77728
|
_defineProperty$7(this, "_onAdComplete", function() {
|
|
@@ -77836,7 +77836,7 @@ var Scte35Manager = /* @__PURE__ */ function() {
|
|
|
77836
77836
|
this._player.on("core_event", this._handleHlsCoreEvent);
|
|
77837
77837
|
var _this$_adManager$conf = this._adManager.config, adsRequest = _this$_adManager$conf.adsRequest, adsResponse = _this$_adManager$conf.adsResponse, adTagUrl = _this$_adManager$conf.adTagUrl;
|
|
77838
77838
|
if (adsRequest || adsResponse || adTagUrl) {
|
|
77839
|
-
this._player.once(
|
|
77839
|
+
this._player.once(AD_ERROR, this._onReady);
|
|
77840
77840
|
this._player.once(AD_ALL_COMPLETED, this._onReady);
|
|
77841
77841
|
} else {
|
|
77842
77842
|
this._onReady();
|
|
@@ -78099,8 +78099,11 @@ var AdsPlugin = /* @__PURE__ */ function(_XGAdsPlugin) {
|
|
|
78099
78099
|
}, {
|
|
78100
78100
|
key: "beforePlayerInit",
|
|
78101
78101
|
value: function beforePlayerInit() {
|
|
78102
|
-
var _this$config$ima;
|
|
78102
|
+
var _this$csManager, _this$config$ima;
|
|
78103
78103
|
var promise2 = _get$2(_getPrototypeOf$6(AdsPlugin2.prototype), "beforePlayerInit", this).call(this);
|
|
78104
|
+
(_this$csManager = this.csManager) === null || _this$csManager === void 0 ? void 0 : _this$csManager.once(IMA_SDK_LOAD_SUCCESS, function() {
|
|
78105
|
+
google.ima.settings.setDisableCustomPlaybackForIOS10Plus(true);
|
|
78106
|
+
});
|
|
78104
78107
|
if (this.config.enableSCTE35 && (_this$config$ima = this.config.ima) !== null && _this$config$ima !== void 0 && _this$config$ima.adTagUrlForSCTE35) {
|
|
78105
78108
|
this._scte35Manager = new Scte35Manager({
|
|
78106
78109
|
player: this.player,
|