@volcengine/veplayer 2.7.1-rc.1 → 2.7.1-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.
@@ -14449,7 +14449,7 @@ class VePlayerBase {
14449
14449
  * @brief Retrieve the player SDK version number.
14450
14450
  */
14451
14451
  get playerVersion() {
14452
- return "2.7.1-rc.1";
14452
+ return "2.7.1-rc.2";
14453
14453
  }
14454
14454
  /** {zh}
14455
14455
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -14724,7 +14724,7 @@ class VePlayerBase {
14724
14724
  }
14725
14725
  }
14726
14726
  /** {zh}
14727
- * @brief 调用此方法开始播放 。
14727
+ * @brief 调用此方法开始播放。
14728
14728
  */
14729
14729
  /** {en}
14730
14730
  * @brief Starts playback.
@@ -14970,9 +14970,7 @@ class VePlayerBase {
14970
14970
  if (!url) {
14971
14971
  const transformedError = transform$1(err, this._i18nManager);
14972
14972
  try {
14973
- const { canEmitError } = await this._beforeFallbackError(
14974
- transformedError
14975
- );
14973
+ const { canEmitError } = await this._beforeFallbackError(transformedError);
14976
14974
  if (!canEmitError) {
14977
14975
  return;
14978
14976
  }
@@ -22706,10 +22704,10 @@ class Logger extends Plugin {
22706
22704
  device_id: this.config.deviceId,
22707
22705
  error_report_stop: true,
22708
22706
  ext: {
22709
- veplayer_version: "2.7.1-rc.1",
22707
+ veplayer_version: "2.7.1-rc.2",
22710
22708
  flv_version: "3.0.21-rc.21",
22711
22709
  hls_version: "3.0.21-rc.21",
22712
- rts_version: "0.2.1-alpha.14"
22710
+ rts_version: "0.2.1-alpha.24"
22713
22711
  }
22714
22712
  });
22715
22713
  }
@@ -23898,6 +23896,12 @@ class VePlayerLive extends VePlayerBase {
23898
23896
  */
23899
23897
  constructor(options) {
23900
23898
  super(options);
23899
+ /** {en}
23900
+ * @hidden
23901
+ */
23902
+ /** {zh}
23903
+ * @hidden
23904
+ */
23901
23905
  __publicField(this, "_protocolManager");
23902
23906
  }
23903
23907
  /** {zh}
@@ -24008,10 +24012,11 @@ class VePlayerLive extends VePlayerBase {
24008
24012
  }
24009
24013
  /** {zh}
24010
24014
  * @brief 调用此方法更新 DRM 配置。
24015
+ * @param config DRM 配置对象,包含 Fairplay DRM 的相关设置。
24011
24016
  */
24012
24017
  /** {en}
24013
24018
  * @brief Use this method to update DRM configuration.
24014
- * @param config
24019
+ * @param config A configuration object containing settings for Fairplay DRM.
24015
24020
  */
24016
24021
  updateDrmConfig(config) {
24017
24022
  var _a, _b, _c;
@@ -24089,10 +24094,29 @@ class VePlayerLive extends VePlayerBase {
24089
24094
  var _a, _b, _c;
24090
24095
  return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
24091
24096
  }
24097
+ /** {en}
24098
+ * @brief This method is used to update the playlist, supporting updates to source, resolution, and related information.
24099
+ * @param playlist The playlist, consisting of multiple `Source` type elements.
24100
+ * @param target An optional target configuration, which can specify the resolution or source. Providing this information helps update the playback source for a specific resolution or stream.
24101
+ * @param needUpdateProtocol Whether the protocol needs to be updated.
24102
+ *
24103
+ * - `true`: Forces the protocol update to ensure compatibility with the playback configuration or source.
24104
+ * - `false`: Does not update the protocol and continues to use the current configuration.
24105
+ */
24106
+ /** {zh}
24107
+ * @brief 调用此方法更新播放列表,支持更新源、清晰度等相关信息。
24108
+ * @param playlist 播放列表,包含多个 `Source` 类型的元素。
24109
+ * @param target 可选的目标配置项,可以指定清晰度或源。提供这些信息可以帮助更新特定清晰度或线路的播放源。
24110
+ * @param needUpdateProtocol 是否需要更新协议。
24111
+ * - `true`:强制更新协议,以确保播放配置或源的兼容性。
24112
+ * - `false`:不更新协议,继续使用当前配置。
24113
+ */
24092
24114
  async updatePlaylist(playlist, target, needUpdateProtocol = true) {
24093
24115
  var _a;
24094
24116
  if (needUpdateProtocol) {
24095
- await ((_a = this._protocolManager) == null ? void 0 : _a.update({ playlist }));
24117
+ await ((_a = this._protocolManager) == null ? void 0 : _a.update({
24118
+ playlist
24119
+ }));
24096
24120
  }
24097
24121
  return super.updatePlaylist(playlist, target);
24098
24122
  }
@@ -24128,7 +24152,9 @@ async function createLivePlayer(options) {
24128
24152
  i18nManager: i18n,
24129
24153
  preProcessUrl: (url) => {
24130
24154
  if (isType(".ts", url)) {
24131
- return { url };
24155
+ return {
24156
+ url
24157
+ };
24132
24158
  }
24133
24159
  return {
24134
24160
  url: generateUrlWithSessionId(url)
@@ -24136,7 +24162,9 @@ async function createLivePlayer(options) {
24136
24162
  },
24137
24163
  async preparePlugins(url) {
24138
24164
  if (!protocolManager.enableSelector) {
24139
- await protocolManager.update({ url });
24165
+ await protocolManager.update({
24166
+ url
24167
+ });
24140
24168
  }
24141
24169
  return protocolManager.getStrategy(player, i18n);
24142
24170
  }