@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
|
@@ -1988,7 +1988,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1988
1988
|
}
|
|
1989
1989
|
if (this.__hooks && this.__hooks[hookName]) {
|
|
1990
1990
|
try {
|
|
1991
|
-
var preRet = runHooks(this, hookName, handler);
|
|
1991
|
+
var preRet = runHooks.apply(void 0, [this, hookName, handler].concat(Array.prototype.slice.call(arguments)));
|
|
1992
1992
|
if (preRet) {
|
|
1993
1993
|
if (preRet.then) {
|
|
1994
1994
|
preRet.then(function(isContinue) {
|
|
@@ -2102,6 +2102,8 @@ var __publicField = (obj, key, value) => {
|
|
|
2102
2102
|
});
|
|
2103
2103
|
} else if (ret !== false) {
|
|
2104
2104
|
return runHooksRecursive2.apply(void 0, [obj2, hookName2, handler2].concat(args2));
|
|
2105
|
+
} else if (ret === false) {
|
|
2106
|
+
return false;
|
|
2105
2107
|
}
|
|
2106
2108
|
};
|
|
2107
2109
|
return runHooksRecursive.apply(void 0, [obj, hookName, handler].concat(args));
|
|
@@ -6516,7 +6518,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6516
6518
|
_createClass$2(AdsPlugin2, [{
|
|
6517
6519
|
key: "version",
|
|
6518
6520
|
get: function get() {
|
|
6519
|
-
return "3.0.
|
|
6521
|
+
return "3.0.24-rc.2";
|
|
6520
6522
|
}
|
|
6521
6523
|
}, {
|
|
6522
6524
|
key: "paused",
|
|
@@ -11012,12 +11014,24 @@ var __publicField = (obj, key, value) => {
|
|
|
11012
11014
|
}
|
|
11013
11015
|
}
|
|
11014
11016
|
async beforePlayerInit() {
|
|
11015
|
-
var _a, _b;
|
|
11017
|
+
var _a, _b, _c;
|
|
11016
11018
|
const promise = super.beforePlayerInit();
|
|
11017
11019
|
(_a = this.csManager) == null ? void 0 : _a.once(IMA_SDK_LOAD_SUCCESS, () => {
|
|
11018
11020
|
google.ima.settings.setDisableCustomPlaybackForIOS10Plus(true);
|
|
11019
11021
|
});
|
|
11020
|
-
if (
|
|
11022
|
+
if (sniffer.os.isTizen || sniffer.os.isWebOS) {
|
|
11023
|
+
this.on(AD_COMPLETE, () => {
|
|
11024
|
+
setTimeout(() => {
|
|
11025
|
+
var _a2, _b2, _c2, _d;
|
|
11026
|
+
(_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);
|
|
11027
|
+
}, 100);
|
|
11028
|
+
});
|
|
11029
|
+
(_b = this.csManager) == null ? void 0 : _b.on(IMA_CONTENT_PAUSE_REQUESTED, () => {
|
|
11030
|
+
var _a2, _b2, _c2, _d;
|
|
11031
|
+
(_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();
|
|
11032
|
+
});
|
|
11033
|
+
}
|
|
11034
|
+
if (this.config.enableSCTE35 && ((_c = this.config.ima) == null ? void 0 : _c.adTagUrlForSCTE35)) {
|
|
11021
11035
|
this._scte35Manager = new Scte35Manager({
|
|
11022
11036
|
player: this.player,
|
|
11023
11037
|
adTagUrl: this.config.ima.adTagUrlForSCTE35,
|