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