@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.
@@ -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) {