@volcengine/veplayer-plugin 2.12.0-rc.0 → 2.12.0-rc.2
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 +537 -246
- package/esm/index.production.js +3 -3
- package/esm/veplayer.plugin.abr.development.js +3 -1
- package/esm/veplayer.plugin.abr.production.js +1 -1
- package/esm/veplayer.plugin.ad.development.js +18 -4
- package/esm/veplayer.plugin.ad.production.js +2 -2
- package/esm/veplayer.plugin.drm.development.js +3 -1
- package/esm/veplayer.plugin.drm.production.js +1 -1
- package/esm/veplayer.plugin.flv.development.js +5 -3
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.hls.development.js +64 -14
- package/esm/veplayer.plugin.hls.production.js +1 -1
- package/esm/veplayer.plugin.hlsjs.development.js +3 -1
- package/esm/veplayer.plugin.hlsjs.production.js +1 -1
- package/esm/veplayer.plugin.mp4.development.js +9 -3
- package/esm/veplayer.plugin.mp4.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +293 -151
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/esm/veplayer.plugin.shaka.development.js +8 -2
- package/esm/veplayer.plugin.shaka.production.js +2 -2
- package/esm/veplayer.strategy.base.development.js +163 -78
- package/esm/veplayer.strategy.base.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.abr.development.js +3 -1
- package/umd/veplayer.plugin.abr.production.js +1 -1
- package/umd/veplayer.plugin.ad.development.js +18 -4
- package/umd/veplayer.plugin.ad.production.js +1 -1
- package/umd/veplayer.plugin.drm.development.js +3 -1
- package/umd/veplayer.plugin.drm.production.js +1 -1
- package/umd/veplayer.plugin.flv.development.js +5 -3
- package/umd/veplayer.plugin.flv.production.js +1 -1
- package/umd/veplayer.plugin.hls.development.js +64 -14
- package/umd/veplayer.plugin.hls.production.js +1 -1
- package/umd/veplayer.plugin.hlsjs.development.js +3 -1
- package/umd/veplayer.plugin.hlsjs.production.js +1 -1
- package/umd/veplayer.plugin.mp4.development.js +9 -3
- package/umd/veplayer.plugin.mp4.production.js +1 -1
- package/umd/veplayer.plugin.rtm.development.js +293 -151
- package/umd/veplayer.plugin.rtm.production.js +1 -1
- package/umd/veplayer.plugin.shaka.development.js +8 -2
- package/umd/veplayer.plugin.shaka.production.js +1 -1
- package/umd/veplayer.strategy.base.development.js +163 -78
- package/umd/veplayer.strategy.base.production.js +1 -1
|
@@ -1984,7 +1984,7 @@ function hook(hookName, handler) {
|
|
|
1984
1984
|
}
|
|
1985
1985
|
if (this.__hooks && this.__hooks[hookName]) {
|
|
1986
1986
|
try {
|
|
1987
|
-
var preRet = runHooks(this, hookName, handler);
|
|
1987
|
+
var preRet = runHooks.apply(void 0, [this, hookName, handler].concat(Array.prototype.slice.call(arguments)));
|
|
1988
1988
|
if (preRet) {
|
|
1989
1989
|
if (preRet.then) {
|
|
1990
1990
|
preRet.then(function(isContinue) {
|
|
@@ -2098,6 +2098,8 @@ function runHooks(obj, hookName, handler) {
|
|
|
2098
2098
|
});
|
|
2099
2099
|
} else if (ret !== false) {
|
|
2100
2100
|
return runHooksRecursive2.apply(void 0, [obj2, hookName2, handler2].concat(args2));
|
|
2101
|
+
} else if (ret === false) {
|
|
2102
|
+
return false;
|
|
2101
2103
|
}
|
|
2102
2104
|
};
|
|
2103
2105
|
return runHooksRecursive.apply(void 0, [obj, hookName, handler].concat(args));
|
|
@@ -6512,7 +6514,7 @@ var AdsPlugin$1 = /* @__PURE__ */ function(_Plugin) {
|
|
|
6512
6514
|
_createClass$2(AdsPlugin2, [{
|
|
6513
6515
|
key: "version",
|
|
6514
6516
|
get: function get() {
|
|
6515
|
-
return "3.0.
|
|
6517
|
+
return "3.0.24-rc.2";
|
|
6516
6518
|
}
|
|
6517
6519
|
}, {
|
|
6518
6520
|
key: "paused",
|
|
@@ -11008,12 +11010,24 @@ class AdsPlugin extends AdsPlugin$1 {
|
|
|
11008
11010
|
}
|
|
11009
11011
|
}
|
|
11010
11012
|
async beforePlayerInit() {
|
|
11011
|
-
var _a, _b;
|
|
11013
|
+
var _a, _b, _c;
|
|
11012
11014
|
const promise = super.beforePlayerInit();
|
|
11013
11015
|
(_a = this.csManager) == null ? void 0 : _a.once(IMA_SDK_LOAD_SUCCESS, () => {
|
|
11014
11016
|
google.ima.settings.setDisableCustomPlaybackForIOS10Plus(true);
|
|
11015
11017
|
});
|
|
11016
|
-
if (
|
|
11018
|
+
if (sniffer.os.isTizen || sniffer.os.isWebOS) {
|
|
11019
|
+
this.on(AD_COMPLETE, () => {
|
|
11020
|
+
setTimeout(() => {
|
|
11021
|
+
var _a2, _b2, _c2, _d;
|
|
11022
|
+
(_d = (_c2 = (_b2 = (_a2 = this.player) == null ? void 0 : _a2.plugins) == null ? void 0 : _b2.hls) == null ? void 0 : _c2.hls) == null ? void 0 : _d.attachMedia(this.player.media);
|
|
11023
|
+
}, 100);
|
|
11024
|
+
});
|
|
11025
|
+
(_b = this.csManager) == null ? void 0 : _b.on(IMA_CONTENT_PAUSE_REQUESTED, () => {
|
|
11026
|
+
var _a2, _b2, _c2, _d;
|
|
11027
|
+
(_d = (_c2 = (_b2 = (_a2 = this.player) == null ? void 0 : _a2.plugins) == null ? void 0 : _b2.hls) == null ? void 0 : _c2.hls) == null ? void 0 : _d.detachMedia();
|
|
11028
|
+
});
|
|
11029
|
+
}
|
|
11030
|
+
if (this.config.enableSCTE35 && ((_c = this.config.ima) == null ? void 0 : _c.adTagUrlForSCTE35)) {
|
|
11017
11031
|
this._scte35Manager = new Scte35Manager({
|
|
11018
11032
|
player: this.player,
|
|
11019
11033
|
adTagUrl: this.config.ima.adTagUrlForSCTE35,
|