@byteplus/veplayer 2.10.4-rc.1 → 2.10.4-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/veplayer.biz.live.development.js +9 -0
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.development.js +12 -3
- package/esm/veplayer.live.development.js +12 -3
- package/esm/veplayer.live.production.js +2 -2
- package/esm/veplayer.production.js +2 -2
- package/esm/veplayer.vod.development.js +1 -1
- package/esm/veplayer.vod.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.biz.live.development.js +9 -0
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.development.js +12 -3
- package/umd/veplayer.live.development.js +12 -3
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.development.js +1 -1
- package/umd/veplayer.vod.production.js +1 -1
|
@@ -28247,11 +28247,20 @@ function preferNativeForFairplay(options) {
|
|
|
28247
28247
|
var _a;
|
|
28248
28248
|
return ((_a = options == null ? void 0 : options.drm) == null ? void 0 : _a.fairplay) && (Sniffer$2.browser === "safari" || Sniffer$2.os.isIos);
|
|
28249
28249
|
}
|
|
28250
|
+
function isBaiduOnOpenHarmony() {
|
|
28251
|
+
const ua = navigator.userAgent;
|
|
28252
|
+
const isOpenHarmony = /OpenHarmony/i.test(ua);
|
|
28253
|
+
const isBaidu = /baiduboxapp|baiduboxlite/i.test(ua);
|
|
28254
|
+
return isOpenHarmony && isBaidu;
|
|
28255
|
+
}
|
|
28250
28256
|
function enableMse(options) {
|
|
28251
28257
|
var _a;
|
|
28252
28258
|
if (preferNativeForFairplay(options)) {
|
|
28253
28259
|
return false;
|
|
28254
28260
|
}
|
|
28261
|
+
if (isBaiduOnOpenHarmony()) {
|
|
28262
|
+
return false;
|
|
28263
|
+
}
|
|
28255
28264
|
return Sniffer$2.device !== "mobile" || (((_a = options == null ? void 0 : options.hls) == null ? void 0 : _a.enableMSE) ?? true);
|
|
28256
28265
|
}
|
|
28257
28266
|
function enableHlsJs(options) {
|