@volcengine/veplayer 2.0.0-rc.0 → 2.0.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.
@@ -11,7 +11,7 @@ var __publicField = (obj, key, value) => {
11
11
  const error = window["VePlayer"].error;
12
12
  const { VeError } = error;
13
13
  var LiveErrorCode = /* @__PURE__ */ ((LiveErrorCode2) => {
14
- LiveErrorCode2[LiveErrorCode2["INVALID_PARAMETER"] = 200] = "INVALID_PARAMETER";
14
+ LiveErrorCode2[LiveErrorCode2["INVALID_PARAMETER"] = 210] = "INVALID_PARAMETER";
15
15
  return LiveErrorCode2;
16
16
  })(LiveErrorCode || {});
17
17
  error.Level;
@@ -22,7 +22,7 @@ var __publicField = (obj, key, value) => {
22
22
  const ERRORS = {
23
23
  ...error.ERROR_INFO,
24
24
  [
25
- 200
25
+ 210
26
26
  /* INVALID_PARAMETER */
27
27
  ]: {
28
28
  messageTextKey: "INVALID_PARAMETER",
@@ -77,10 +77,11 @@ var __publicField = (obj, key, value) => {
77
77
  const Rtm = await load$1(DynamicModule$1.PluginRtm);
78
78
  return Rtm.isSupported();
79
79
  };
80
- const isRTMSupportCodec = async (codec = "h264", options) => {
80
+ const isRTMSupportCodec = async (codec = "h264") => {
81
81
  const Rtm = await load$1(DynamicModule$1.PluginRtm);
82
82
  if (codec === "h264")
83
- return Rtm.isSupportedH264(options == null ? void 0 : options.targetProfileLevel);
83
+ return Rtm.isSupportedH264();
84
+ return false;
84
85
  };
85
86
  const util$2 = window["VePlayer"].util;
86
87
  const strategy = window["VePlayer"].strategy;
@@ -2788,7 +2789,7 @@ var __publicField = (obj, key, value) => {
2788
2789
  user_id: this._userId,
2789
2790
  device_id: this._deviceId,
2790
2791
  ext: {
2791
- veplayer_version: "2.0.0-rc.0",
2792
+ veplayer_version: "2.0.0-rc.1",
2792
2793
  flv_version: "3.0.0-next.23",
2793
2794
  hls_version: "3.0.0-next.36-1",
2794
2795
  rts_version: "0.2.0-alpha.3"
@@ -3077,18 +3078,38 @@ var __publicField = (obj, key, value) => {
3077
3078
  };
3078
3079
  const LIVE_DEFAULT_PLUGINS = [...DEFAULT_PLUGINS, Refresh, Logger, InfoPanel];
3079
3080
  class VePlayerLive extends VePlayerBase {
3081
+ /**
3082
+ * @hidden
3083
+ * @param options
3084
+ */
3085
+ constructor(options) {
3086
+ super(options);
3087
+ }
3088
+ /** {zh}
3089
+ * @brief 调用此方法开启直播日志上报。
3090
+ */
3080
3091
  openLog() {
3081
3092
  var _a;
3082
3093
  (_a = this._player.plugins) == null ? void 0 : _a.logger.open();
3083
3094
  }
3095
+ /** {zh}
3096
+ * @brief 调用此方法关闭直播日志上报。
3097
+ */
3084
3098
  closeLog() {
3085
3099
  var _a;
3086
3100
  (_a = this._player.plugins) == null ? void 0 : _a.logger.close();
3087
3101
  }
3102
+ /** {zh}
3103
+ * @brief 调用此方法将打开直播信息面板,面板将展示拉流格式、帧率、码率、GOP、视频分辨率、编码方式、Buffer 水位、播放进度等基础信息。如果当前是软解,还会显示软解解码效率和解码消耗。
3104
+ */
3088
3105
  openInfoPanel() {
3089
3106
  var _a;
3090
3107
  (_a = this._player.plugins) == null ? void 0 : _a.infopanel.open();
3091
3108
  }
3109
+ /** {zh}
3110
+ * @brief 调用此方法关闭直播信息面板。
3111
+ *
3112
+ */
3092
3113
  closeInfoPanel() {
3093
3114
  var _a;
3094
3115
  (_a = this._player.plugins) == null ? void 0 : _a.infopanel.close();