@volcengine/veplayer 2.8.0-rc.0 → 2.8.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.
@@ -2218,7 +2218,7 @@ let Logger$1 = class Logger extends Plugin$2 {
2218
2218
  veplayer_version: "2.3.1-rc.1",
2219
2219
  flv_version: "3.0.21-rc.21",
2220
2220
  hls_version: "3.0.21-rc.21",
2221
- rts_version: "0.2.1-alpha.29"
2221
+ rts_version: "0.2.1-alpha.30"
2222
2222
  }
2223
2223
  });
2224
2224
  }
@@ -19660,7 +19660,7 @@ class VeStrategyManager {
19660
19660
  }
19661
19661
  const { appId, deviceId, Module } = this.config;
19662
19662
  if (appId && deviceId && Module) {
19663
- await Module.bootstrap({
19663
+ Module.bootstrap({
19664
19664
  ...this.config,
19665
19665
  tracker: {
19666
19666
  Collector: this.Collector,
@@ -24212,6 +24212,12 @@ class VePlayerLive extends VePlayerBase {
24212
24212
  */
24213
24213
  constructor(options) {
24214
24214
  super(options);
24215
+ /** {en}
24216
+ * @hidden
24217
+ */
24218
+ /** {zh}
24219
+ * @hidden
24220
+ */
24215
24221
  __publicField(this, "_protocolManager");
24216
24222
  }
24217
24223
  /** {zh}
@@ -24322,10 +24328,11 @@ class VePlayerLive extends VePlayerBase {
24322
24328
  }
24323
24329
  /** {zh}
24324
24330
  * @brief 调用此方法更新 DRM 配置。
24331
+ * @param config DRM 配置对象,包含 Fairplay DRM 的相关设置。
24325
24332
  */
24326
24333
  /** {en}
24327
24334
  * @brief Use this method to update DRM configuration.
24328
- * @param config
24335
+ * @param config A configuration object containing settings for Fairplay DRM.
24329
24336
  */
24330
24337
  updateDrmConfig(config2) {
24331
24338
  var _a, _b, _c;
@@ -24403,10 +24410,29 @@ class VePlayerLive extends VePlayerBase {
24403
24410
  var _a, _b, _c;
24404
24411
  return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
24405
24412
  }
24413
+ /** {en}
24414
+ * @brief This method is used to update the playlist, supporting updates to source, resolution, and related information.
24415
+ * @param playlist The playlist, consisting of multiple `Source` type elements.
24416
+ * @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.
24417
+ * @param needUpdateProtocol Whether the protocol needs to be updated.
24418
+ *
24419
+ * - `true`: Forces the protocol update to ensure compatibility with the playback configuration or source.
24420
+ * - `false`: Does not update the protocol and continues to use the current configuration.
24421
+ */
24422
+ /** {zh}
24423
+ * @brief 调用此方法更新播放列表,支持更新源、清晰度等相关信息。
24424
+ * @param playlist 播放列表,包含多个 `Source` 类型的元素。
24425
+ * @param target 可选的目标配置项,可以指定清晰度或源。提供这些信息可以帮助更新特定清晰度或线路的播放源。
24426
+ * @param needUpdateProtocol 是否需要更新协议。
24427
+ * - `true`:强制更新协议,以确保播放配置或源的兼容性。
24428
+ * - `false`:不更新协议,继续使用当前配置。
24429
+ */
24406
24430
  async updatePlaylist(playlist, target, needUpdateProtocol = true) {
24407
24431
  var _a;
24408
24432
  if (needUpdateProtocol) {
24409
- await ((_a = this._protocolManager) == null ? void 0 : _a.update({ playlist }));
24433
+ await ((_a = this._protocolManager) == null ? void 0 : _a.update({
24434
+ playlist
24435
+ }));
24410
24436
  }
24411
24437
  return super.updatePlaylist(playlist, target);
24412
24438
  }
@@ -24446,7 +24472,9 @@ async function createLivePlayer(options) {
24446
24472
  teaTracker,
24447
24473
  preProcessUrl: (url2) => {
24448
24474
  if (isType(".ts", url2)) {
24449
- return { url: url2 };
24475
+ return {
24476
+ url: url2
24477
+ };
24450
24478
  }
24451
24479
  return {
24452
24480
  url: generateUrlWithSessionId(url2)
@@ -24454,7 +24482,9 @@ async function createLivePlayer(options) {
24454
24482
  },
24455
24483
  async preparePlugins(url2) {
24456
24484
  if (!protocolManager.enableSelector) {
24457
- await protocolManager.update({ url: url2 });
24485
+ await protocolManager.update({
24486
+ url: url2
24487
+ });
24458
24488
  }
24459
24489
  return protocolManager.getStrategy(
24460
24490
  player,