@volcengine/veplayer-plugin 2.10.4-rc.3 → 2.10.4-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 +10 -4
- package/esm/index.production.js +1 -1
- package/esm/veplayer.plugin.abr.development.js +3 -1
- package/esm/veplayer.plugin.abr.production.js +1 -1
- 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 +4 -2
- 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 +4 -2
- 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 +3 -1
- 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.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 +4 -2
- 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 +4 -2
- 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 +3 -1
- package/umd/veplayer.strategy.base.production.js +1 -1
|
@@ -898,6 +898,8 @@ var sniffer = {
|
|
|
898
898
|
var ua = navigator.userAgent;
|
|
899
899
|
var isWindowsPhone = /(?:Windows Phone)/.test(ua);
|
|
900
900
|
var isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone;
|
|
901
|
+
var isTizen = /(?:Tizen)/ig.test(ua);
|
|
902
|
+
var isWebOS = /(?:Web0S)/ig.test(ua);
|
|
901
903
|
var isAndroid = /(?:Android)/.test(ua);
|
|
902
904
|
var isFireFox = /(?:Firefox)/.test(ua);
|
|
903
905
|
var isIpad = /(?:iPad|PlayBook)/.test(ua) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
@@ -913,7 +915,9 @@ var sniffer = {
|
|
|
913
915
|
isPc,
|
|
914
916
|
isSymbian,
|
|
915
917
|
isWindowsPhone,
|
|
916
|
-
isFireFox
|
|
918
|
+
isFireFox,
|
|
919
|
+
isTizen,
|
|
920
|
+
isWebOS
|
|
917
921
|
};
|
|
918
922
|
},
|
|
919
923
|
get osVersion() {
|
|
@@ -1056,7 +1060,7 @@ function hook(hookName, handler) {
|
|
|
1056
1060
|
}
|
|
1057
1061
|
if (this.__hooks && this.__hooks[hookName]) {
|
|
1058
1062
|
try {
|
|
1059
|
-
var preRet = runHooks(this, hookName, handler);
|
|
1063
|
+
var preRet = runHooks.apply(void 0, [this, hookName, handler].concat(Array.prototype.slice.call(arguments)));
|
|
1060
1064
|
if (preRet) {
|
|
1061
1065
|
if (preRet.then) {
|
|
1062
1066
|
preRet.then(function(isContinue) {
|
|
@@ -1170,6 +1174,8 @@ function runHooks(obj, hookName, handler) {
|
|
|
1170
1174
|
});
|
|
1171
1175
|
} else if (ret !== false) {
|
|
1172
1176
|
return runHooksRecursive2.apply(void 0, [obj2, hookName2, handler2].concat(args2));
|
|
1177
|
+
} else if (ret === false) {
|
|
1178
|
+
return false;
|
|
1173
1179
|
}
|
|
1174
1180
|
};
|
|
1175
1181
|
return runHooksRecursive.apply(void 0, [obj, hookName, handler].concat(args));
|