@volcengine/veplayer 2.7.1-rc.1 → 2.7.1-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.
@@ -2993,7 +2993,7 @@ var __publicField = (obj, key, value) => {
2993
2993
  veplayer_version: "2.3.1-rc.1",
2994
2994
  flv_version: "3.0.21-rc.21",
2995
2995
  hls_version: "3.0.21-rc.21",
2996
- rts_version: "0.2.1-alpha.14"
2996
+ rts_version: "0.2.1-alpha.32"
2997
2997
  }
2998
2998
  });
2999
2999
  }
@@ -4747,6 +4747,12 @@ var __publicField = (obj, key, value) => {
4747
4747
  */
4748
4748
  constructor(options) {
4749
4749
  super(options);
4750
+ /** {en}
4751
+ * @hidden
4752
+ */
4753
+ /** {zh}
4754
+ * @hidden
4755
+ */
4750
4756
  __publicField(this, "_protocolManager");
4751
4757
  }
4752
4758
  /** {zh}
@@ -4857,10 +4863,11 @@ var __publicField = (obj, key, value) => {
4857
4863
  }
4858
4864
  /** {zh}
4859
4865
  * @brief 调用此方法更新 DRM 配置。
4866
+ * @param config DRM 配置对象,包含 Fairplay DRM 的相关设置。
4860
4867
  */
4861
4868
  /** {en}
4862
4869
  * @brief Use this method to update DRM configuration.
4863
- * @param config
4870
+ * @param config A configuration object containing settings for Fairplay DRM.
4864
4871
  */
4865
4872
  updateDrmConfig(config) {
4866
4873
  var _a, _b, _c;
@@ -4938,10 +4945,29 @@ var __publicField = (obj, key, value) => {
4938
4945
  var _a, _b, _c;
4939
4946
  return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
4940
4947
  }
4948
+ /** {en}
4949
+ * @brief This method is used to update the playlist, supporting updates to source, resolution, and related information.
4950
+ * @param playlist The playlist, consisting of multiple `Source` type elements.
4951
+ * @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.
4952
+ * @param needUpdateProtocol Whether the protocol needs to be updated.
4953
+ *
4954
+ * - `true`: Forces the protocol update to ensure compatibility with the playback configuration or source.
4955
+ * - `false`: Does not update the protocol and continues to use the current configuration.
4956
+ */
4957
+ /** {zh}
4958
+ * @brief 调用此方法更新播放列表,支持更新源、清晰度等相关信息。
4959
+ * @param playlist 播放列表,包含多个 `Source` 类型的元素。
4960
+ * @param target 可选的目标配置项,可以指定清晰度或源。提供这些信息可以帮助更新特定清晰度或线路的播放源。
4961
+ * @param needUpdateProtocol 是否需要更新协议。
4962
+ * - `true`:强制更新协议,以确保播放配置或源的兼容性。
4963
+ * - `false`:不更新协议,继续使用当前配置。
4964
+ */
4941
4965
  async updatePlaylist(playlist, target, needUpdateProtocol = true) {
4942
4966
  var _a;
4943
4967
  if (needUpdateProtocol) {
4944
- await ((_a = this._protocolManager) == null ? void 0 : _a.update({ playlist }));
4968
+ await ((_a = this._protocolManager) == null ? void 0 : _a.update({
4969
+ playlist
4970
+ }));
4945
4971
  }
4946
4972
  return super.updatePlaylist(playlist, target);
4947
4973
  }
@@ -4977,7 +5003,9 @@ var __publicField = (obj, key, value) => {
4977
5003
  i18nManager: i18n,
4978
5004
  preProcessUrl: (url) => {
4979
5005
  if (isType(".ts", url)) {
4980
- return { url };
5006
+ return {
5007
+ url
5008
+ };
4981
5009
  }
4982
5010
  return {
4983
5011
  url: generateUrlWithSessionId(url)
@@ -4985,7 +5013,9 @@ var __publicField = (obj, key, value) => {
4985
5013
  },
4986
5014
  async preparePlugins(url) {
4987
5015
  if (!protocolManager.enableSelector) {
4988
- await protocolManager.update({ url });
5016
+ await protocolManager.update({
5017
+ url
5018
+ });
4989
5019
  }
4990
5020
  return protocolManager.getStrategy(player, i18n);
4991
5021
  }