@volcengine/veplayer 2.10.4-rc.2 → 2.10.4-rc.3

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.d.ts CHANGED
@@ -7519,7 +7519,6 @@ declare function isRTMSupported(): Promise<boolean>;
7519
7519
  * @returns
7520
7520
  */
7521
7521
  declare function isRTMSupportCodec(codec?: string): Promise<boolean>;
7522
- declare function isRTMSeiSupported(): Promise<boolean>;
7523
7522
  /** {zh}
7524
7523
  * @detail api
7525
7524
  * @brief 检查当前浏览器是否支持 FLV 格式流的编码信息。
@@ -13940,4 +13939,4 @@ declare namespace live {
13940
13939
  const ERRORS: Partial<Record<ValueOf<typeof ErrorCode$0>, error.ErrorInfo<TextKey$0>>>;
13941
13940
  function create$0(errorCode: ValueOf<typeof ErrorCode$0>, i18n?: VeI18n<TextKey$0>): error.VeError<"DEFINITION_FALLBACK_TOAST" | "DEFINITION_SWITCHING" | "ERROR_REFRESH" | "UNMUTE" | "MANIFEST" | "NETWORK" | "NETWORK_TIMEOUT" | "NETWORK_FORBIDDEN" | "NETWORK_NOTFOUND" | "DEMUX" | "REMUX" | "MEDIA" | "MEDIA_ERR_CODEC_NOT_SUPPORTED" | "MEDIA_ERR_URL_EMPTY" | "DRM" | "DRM_LICENSE" | "DRM_UNSUPPORTED" | "DRM_NO_MEDIA_KEY" | "DRM_NO_KEY_SESSION" | "DRM_GENERATE_QUEST_FAIL" | "DRM_LACK_SERVER_CERTIFICATE_PATH" | "DRM_LACK_SERVER_PROCESS_SPC_PATH" | "DRM_LICENSE_FAIL" | "DRM_KEY_ERROR" | "DRM_CERT_FAIL" | "OTHER" | "RUNTIME" | "MODULE_LOAD_ERROR" | "UNKNOWN" | "ERROR_TYPES" | "HAVE_NOTHING" | "HAVE_METADATA" | "HAVE_CURRENT_DATA" | "HAVE_FUTURE_DATA" | "HAVE_ENOUGH_DATA" | "NETWORK_EMPTY" | "NETWORK_IDLE" | "NETWORK_LOADING" | "NETWORK_NO_SOURCE" | "MEDIA_ERR_ABORTED" | "MEDIA_ERR_NETWORK" | "MEDIA_ERR_DECODE" | "MEDIA_ERR_SRC_NOT_SUPPORTED" | "REPLAY" | "ERROR" | "PLAY_TIPS" | "PAUSE_TIPS" | "PLAYNEXT_TIPS" | "DOWNLOAD_TIPS" | "ROTATE_TIPS" | "RELOAD_TIPS" | "FULLSCREEN_TIPS" | "EXITFULLSCREEN_TIPS" | "CSSFULLSCREEN_TIPS" | "EXITCSSFULLSCREEN_TIPS" | "TEXTTRACK" | "PIP" | "SCREENSHOT" | "LIVE" | "OFF" | "OPEN" | "MINI_DRAG" | "MINISCREEN" | "REFRESH_TIPS" | "REFRESH" | "FORWARD" | "LIVE_TIP" | "GOP" | "INVALID_PARAMETER" | "EMPTY_RTM_FALLBACK_PARAMETER" | "INVALID_LOGGER" | "FORMAT" | "FPS" | "BITRATE" | "RESOLUTION" | "ENCODE_TYPE" | "BUFFER_END" | "CURRENT_TIME" | "DECODE_EFFICIENCY" | "DECODE_COST" | "DECODE_INFO">;
13942
13941
  }
13943
- export { Codec, DecodeType, Degradation, DynamicModule, RTMCodec, ListType, Plugin, ExposedSource, VePlayerLive, util, register, registerPlugin, createLivePlayer, isMseSupported, isSoftDecodeSupported, isRTMSupported, isFLVSupported, isRTMSupportCodec, isRTMSeiSupported, isMMSSupported, load, POSITIONS, EN, ZH_CN, Sniffer, live };
13942
+ export { Codec, DecodeType, Degradation, DynamicModule, RTMCodec, ListType, Plugin, ExposedSource, VePlayerLive, util, register, registerPlugin, createLivePlayer, isMseSupported, isSoftDecodeSupported, isRTMSupported, isFLVSupported, isRTMSupportCodec, isMMSSupported, load, POSITIONS, EN, ZH_CN, Sniffer, live };
@@ -14576,7 +14576,7 @@ class VePlayerBase {
14576
14576
  * @brief Retrieve the player SDK version number.
14577
14577
  */
14578
14578
  get playerVersion() {
14579
- return "2.10.4-rc.2";
14579
+ return "2.10.4-rc.3";
14580
14580
  }
14581
14581
  /** {zh}
14582
14582
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -55415,10 +55415,10 @@ let Logger$1 = class Logger2 extends Plugin {
55415
55415
  device_id: deviceId,
55416
55416
  error_report_stop: true,
55417
55417
  ext: {
55418
- veplayer_version: "2.10.4-rc.2",
55419
- flv_version: "3.0.23-rc.7",
55418
+ veplayer_version: "2.10.4-rc.3",
55419
+ flv_version: "3.0.23-rc.6",
55420
55420
  hls_version: "3.0.21-rc.21",
55421
- rts_version: "0.2.1-alpha.62"
55421
+ rts_version: "0.2.1-alpha.64"
55422
55422
  }
55423
55423
  });
55424
55424
  }
@@ -55999,20 +55999,11 @@ function preferNativeForFairplay(options) {
55999
55999
  var _a;
56000
56000
  return ((_a = options == null ? void 0 : options.drm) == null ? void 0 : _a.fairplay) && (sniffer$1.browser === "safari" || sniffer$1.os.isIos);
56001
56001
  }
56002
- function isBaiduOnOpenHarmony() {
56003
- const ua2 = navigator.userAgent;
56004
- const isOpenHarmony = /OpenHarmony/i.test(ua2);
56005
- const isBaidu = /baiduboxapp|baiduboxlite/i.test(ua2);
56006
- return isOpenHarmony && isBaidu;
56007
- }
56008
56002
  function enableMse(options) {
56009
56003
  var _a;
56010
56004
  if (preferNativeForFairplay(options)) {
56011
56005
  return false;
56012
56006
  }
56013
- if (isBaiduOnOpenHarmony()) {
56014
- return false;
56015
- }
56016
56007
  return sniffer$1.device !== "mobile" || (((_a = options == null ? void 0 : options.hls) == null ? void 0 : _a.enableMSE) ?? true);
56017
56008
  }
56018
56009
  function enableHlsJs(options) {
@@ -56277,10 +56268,6 @@ async function isRTMSupportCodec(codec = RTMCodec.H264) {
56277
56268
  return RtmPlugin.isSupportedH264();
56278
56269
  return false;
56279
56270
  }
56280
- async function isRTMSeiSupported() {
56281
- const { RtmPlugin } = await load(DynamicModule.PluginRtm);
56282
- return RtmPlugin.isEncodedTransformSupported();
56283
- }
56284
56271
  const rtmStrategy = {
56285
56272
  options: {},
56286
56273
  module: DynamicModule.PluginRtm
@@ -72891,7 +72878,7 @@ async function prepare(options) {
72891
72878
  }
72892
72879
  await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
72893
72880
  ...options,
72894
- playerVersion: "2.10.4-rc.2",
72881
+ playerVersion: "2.10.4-rc.3",
72895
72882
  type: "LIVE"
72896
72883
  }));
72897
72884
  return liveVeStrategy.veStrategyManager;
@@ -72923,7 +72910,6 @@ export {
72923
72910
  isFLVSupported,
72924
72911
  isMMSSupported$1 as isMMSSupported,
72925
72912
  isMseSupported$2 as isMseSupported,
72926
- isRTMSeiSupported,
72927
72913
  isRTMSupportCodec,
72928
72914
  isRTMSupported,
72929
72915
  isSoftDecodeSupported,
@@ -7519,7 +7519,6 @@ declare function isRTMSupported(): Promise<boolean>;
7519
7519
  * @returns
7520
7520
  */
7521
7521
  declare function isRTMSupportCodec(codec?: string): Promise<boolean>;
7522
- declare function isRTMSeiSupported(): Promise<boolean>;
7523
7522
  /** {zh}
7524
7523
  * @detail api
7525
7524
  * @brief 检查当前浏览器是否支持 FLV 格式流的编码信息。
@@ -13948,4 +13947,4 @@ declare const enum DrmType {
13948
13947
  declare const isMseSupported$0: typeof isMseSupported;
13949
13948
  declare const isSoftDecodeSupported$0: typeof isSoftDecodeSupported;
13950
13949
  declare const isMMSSupported$0: typeof isMMSSupported;
13951
- export { Codec, DecodeType, Degradation, DynamicModule, RTMCodec, ListType, DrmType, Plugin, ExposedSource, VePlayerLive, util, register, registerPlugin, createLivePlayer, isMseSupported$0 as isMseSupported, isSoftDecodeSupported$0 as isSoftDecodeSupported, isRTMSupported, isFLVSupported, isRTMSupportCodec, isRTMSeiSupported, isMMSSupported$0 as isMMSSupported, load, POSITIONS, EN, ZH_CN, Sniffer, live };
13950
+ export { Codec, DecodeType, Degradation, DynamicModule, RTMCodec, ListType, DrmType, Plugin, ExposedSource, VePlayerLive, util, register, registerPlugin, createLivePlayer, isMseSupported$0 as isMseSupported, isSoftDecodeSupported$0 as isSoftDecodeSupported, isRTMSupported, isFLVSupported, isRTMSupportCodec, isMMSSupported$0 as isMMSSupported, load, POSITIONS, EN, ZH_CN, Sniffer, live };
@@ -14576,7 +14576,7 @@ class VePlayerBase {
14576
14576
  * @brief Retrieve the player SDK version number.
14577
14577
  */
14578
14578
  get playerVersion() {
14579
- return "2.10.4-rc.2";
14579
+ return "2.10.4-rc.3";
14580
14580
  }
14581
14581
  /** {zh}
14582
14582
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -55415,10 +55415,10 @@ let Logger$1 = class Logger2 extends Plugin {
55415
55415
  device_id: deviceId,
55416
55416
  error_report_stop: true,
55417
55417
  ext: {
55418
- veplayer_version: "2.10.4-rc.2",
55419
- flv_version: "3.0.23-rc.7",
55418
+ veplayer_version: "2.10.4-rc.3",
55419
+ flv_version: "3.0.23-rc.6",
55420
55420
  hls_version: "3.0.21-rc.21",
55421
- rts_version: "0.2.1-alpha.62"
55421
+ rts_version: "0.2.1-alpha.64"
55422
55422
  }
55423
55423
  });
55424
55424
  }
@@ -56005,20 +56005,11 @@ function preferNativeForFairplay(options) {
56005
56005
  var _a;
56006
56006
  return ((_a = options == null ? void 0 : options.drm) == null ? void 0 : _a.fairplay) && (sniffer$1.browser === "safari" || sniffer$1.os.isIos);
56007
56007
  }
56008
- function isBaiduOnOpenHarmony() {
56009
- const ua2 = navigator.userAgent;
56010
- const isOpenHarmony = /OpenHarmony/i.test(ua2);
56011
- const isBaidu = /baiduboxapp|baiduboxlite/i.test(ua2);
56012
- return isOpenHarmony && isBaidu;
56013
- }
56014
56008
  function enableMse(options) {
56015
56009
  var _a;
56016
56010
  if (preferNativeForFairplay(options)) {
56017
56011
  return false;
56018
56012
  }
56019
- if (isBaiduOnOpenHarmony()) {
56020
- return false;
56021
- }
56022
56013
  return sniffer$1.device !== "mobile" || (((_a = options == null ? void 0 : options.hls) == null ? void 0 : _a.enableMSE) ?? true);
56023
56014
  }
56024
56015
  function enableHlsJs(options) {
@@ -56283,10 +56274,6 @@ async function isRTMSupportCodec(codec = RTMCodec.H264) {
56283
56274
  return RtmPlugin.isSupportedH264();
56284
56275
  return false;
56285
56276
  }
56286
- async function isRTMSeiSupported() {
56287
- const { RtmPlugin } = await load(DynamicModule.PluginRtm);
56288
- return RtmPlugin.isEncodedTransformSupported();
56289
- }
56290
56277
  const rtmStrategy = {
56291
56278
  options: {},
56292
56279
  module: DynamicModule.PluginRtm
@@ -72897,7 +72884,7 @@ async function prepare(options) {
72897
72884
  }
72898
72885
  await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
72899
72886
  ...options,
72900
- playerVersion: "2.10.4-rc.2",
72887
+ playerVersion: "2.10.4-rc.3",
72901
72888
  type: "LIVE"
72902
72889
  }));
72903
72890
  return liveVeStrategy.veStrategyManager;
@@ -72929,7 +72916,6 @@ export {
72929
72916
  isFLVSupported,
72930
72917
  isMMSSupported,
72931
72918
  isMseSupported,
72932
- isRTMSeiSupported,
72933
72919
  isRTMSupportCodec,
72934
72920
  isRTMSupported,
72935
72921
  isSoftDecodeSupported,