@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
package/package.json
CHANGED
|
@@ -28245,11 +28245,20 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
28245
28245
|
var _a;
|
|
28246
28246
|
return ((_a = options == null ? void 0 : options.drm) == null ? void 0 : _a.fairplay) && (Sniffer$2.browser === "safari" || Sniffer$2.os.isIos);
|
|
28247
28247
|
}
|
|
28248
|
+
function isBaiduOnOpenHarmony() {
|
|
28249
|
+
const ua = navigator.userAgent;
|
|
28250
|
+
const isOpenHarmony = /OpenHarmony/i.test(ua);
|
|
28251
|
+
const isBaidu = /baiduboxapp|baiduboxlite/i.test(ua);
|
|
28252
|
+
return isOpenHarmony && isBaidu;
|
|
28253
|
+
}
|
|
28248
28254
|
function enableMse(options) {
|
|
28249
28255
|
var _a;
|
|
28250
28256
|
if (preferNativeForFairplay(options)) {
|
|
28251
28257
|
return false;
|
|
28252
28258
|
}
|
|
28259
|
+
if (isBaiduOnOpenHarmony()) {
|
|
28260
|
+
return false;
|
|
28261
|
+
}
|
|
28253
28262
|
return Sniffer$2.device !== "mobile" || (((_a = options == null ? void 0 : options.hls) == null ? void 0 : _a.enableMSE) ?? true);
|
|
28254
28263
|
}
|
|
28255
28264
|
function enableHlsJs(options) {
|