@byteplus/veplayer 2.10.4-rc.0 → 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.0",
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",
@@ -26578,7 +26578,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
26578
26578
  veplayer_version: "2.3.1-rc.3",
26579
26579
  flv_version: "3.0.23-rc.7",
26580
26580
  hls_version: "3.0.21-rc.21",
26581
- rts_version: "0.2.1-alpha.61"
26581
+ rts_version: "0.2.1-alpha.62"
26582
26582
  }
26583
26583
  });
26584
26584
  }
@@ -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) {
@@ -28523,6 +28532,10 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
28523
28532
  return RtmPlugin.isSupportedH264();
28524
28533
  return false;
28525
28534
  }
28535
+ async function isRTMSeiSupported() {
28536
+ const { RtmPlugin } = await load$4(DynamicModule$5.PluginRtm);
28537
+ return RtmPlugin.isEncodedTransformSupported();
28538
+ }
28526
28539
  const strategy = window["VePlayer"].strategy;
28527
28540
  const util$1 = window["VePlayer"].util;
28528
28541
  const DynamicModule$4 = window["VePlayer"].DynamicModule;
@@ -49999,6 +50012,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
49999
50012
  exports2.isFLVSupported = isFLVSupported;
50000
50013
  exports2.isMMSSupported = isMMSSupported;
50001
50014
  exports2.isMseSupported = isMseSupported;
50015
+ exports2.isRTMSeiSupported = isRTMSeiSupported;
50002
50016
  exports2.isRTMSupportCodec = isRTMSupportCodec;
50003
50017
  exports2.isRTMSupported = isRTMSupported;
50004
50018
  exports2.isSoftDecodeSupported = isSoftDecodeSupported;