@byteplus/veplayer 2.12.0-rc.1 → 2.12.0-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.
@@ -26720,9 +26720,9 @@ let Logger$1 = class Logger2 extends Plugin$2 {
26720
26720
  error_report_stop: true,
26721
26721
  ext: {
26722
26722
  veplayer_version: "2.3.1-rc.3",
26723
- flv_version: "3.0.24-rc.2",
26723
+ flv_version: "3.0.24-rc.6",
26724
26724
  hls_version: "3.0.24-rc.2",
26725
- rts_version: "0.2.1-alpha.57"
26725
+ rts_version: "0.2.1-alpha.64"
26726
26726
  }
26727
26727
  });
26728
26728
  }
@@ -34617,11 +34617,20 @@ function preferNativeForFairplay(options) {
34617
34617
  var _a;
34618
34618
  return ((_a = options == null ? void 0 : options.drm) == null ? void 0 : _a.fairplay) && (Sniffer$2.browser === "safari" || Sniffer$2.os.isIos);
34619
34619
  }
34620
+ function isBaiduOnOpenHarmony() {
34621
+ const ua = navigator.userAgent;
34622
+ const isOpenHarmony = /OpenHarmony/i.test(ua);
34623
+ const isBaidu = /baiduboxapp|baiduboxlite/i.test(ua);
34624
+ return isOpenHarmony && isBaidu;
34625
+ }
34620
34626
  function enableMse(options) {
34621
34627
  var _a;
34622
34628
  if (preferNativeForFairplay(options)) {
34623
34629
  return false;
34624
34630
  }
34631
+ if (isBaiduOnOpenHarmony()) {
34632
+ return false;
34633
+ }
34625
34634
  return Sniffer$2.device !== "mobile" || (((_a = options == null ? void 0 : options.hls) == null ? void 0 : _a.enableMSE) ?? true);
34626
34635
  }
34627
34636
  function enableHlsJs(options) {
@@ -34895,6 +34904,10 @@ async function isRTMSupportCodec(codec = RTMCodec.H264) {
34895
34904
  return RtmPlugin.isSupportedH264();
34896
34905
  return false;
34897
34906
  }
34907
+ async function isRTMSeiSupported() {
34908
+ const { RtmPlugin } = await load$4(DynamicModule$5.PluginRtm);
34909
+ return RtmPlugin.isEncodedTransformSupported();
34910
+ }
34898
34911
  const strategy = window["VePlayer"].strategy;
34899
34912
  const util$1 = window["VePlayer"].util;
34900
34913
  const DynamicModule$4 = window["VePlayer"].DynamicModule;
@@ -51456,6 +51469,7 @@ export {
51456
51469
  isFLVSupported,
51457
51470
  isMMSSupported,
51458
51471
  isMseSupported,
51472
+ isRTMSeiSupported,
51459
51473
  isRTMSupportCodec,
51460
51474
  isRTMSupported,
51461
51475
  isSoftDecodeSupported,