@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteplus/veplayer",
3
- "version": "2.10.4-rc.1",
3
+ "version": "2.10.4-rc.2",
4
4
  "main": "./umd/veplayer.production.js",
5
5
  "module": "./esm/veplayer.production.js",
6
6
  "browser": "./umd/veplayer.production.js",
@@ -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) {