@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.
@@ -2222,7 +2222,7 @@ var __publicField = (obj, key, value) => {
2222
2222
  veplayer_version: "2.3.1-rc.1",
2223
2223
  flv_version: "3.0.21-rc.21",
2224
2224
  hls_version: "3.0.21-rc.21",
2225
- rts_version: "0.2.1-alpha.29"
2225
+ rts_version: "0.2.1-alpha.30"
2226
2226
  }
2227
2227
  });
2228
2228
  }
@@ -19664,7 +19664,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
19664
19664
  }
19665
19665
  const { appId, deviceId, Module } = this.config;
19666
19666
  if (appId && deviceId && Module) {
19667
- await Module.bootstrap({
19667
+ Module.bootstrap({
19668
19668
  ...this.config,
19669
19669
  tracker: {
19670
19670
  Collector: this.Collector,
@@ -24216,6 +24216,12 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
24216
24216
  */
24217
24217
  constructor(options) {
24218
24218
  super(options);
24219
+ /** {en}
24220
+ * @hidden
24221
+ */
24222
+ /** {zh}
24223
+ * @hidden
24224
+ */
24219
24225
  __publicField(this, "_protocolManager");
24220
24226
  }
24221
24227
  /** {zh}
@@ -24326,10 +24332,11 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
24326
24332
  }
24327
24333
  /** {zh}
24328
24334
  * @brief 调用此方法更新 DRM 配置。
24335
+ * @param config DRM 配置对象,包含 Fairplay DRM 的相关设置。
24329
24336
  */
24330
24337
  /** {en}
24331
24338
  * @brief Use this method to update DRM configuration.
24332
- * @param config
24339
+ * @param config A configuration object containing settings for Fairplay DRM.
24333
24340
  */
24334
24341
  updateDrmConfig(config2) {
24335
24342
  var _a, _b, _c;
@@ -24407,10 +24414,29 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
24407
24414
  var _a, _b, _c;
24408
24415
  return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
24409
24416
  }
24417
+ /** {en}
24418
+ * @brief This method is used to update the playlist, supporting updates to source, resolution, and related information.
24419
+ * @param playlist The playlist, consisting of multiple `Source` type elements.
24420
+ * @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.
24421
+ * @param needUpdateProtocol Whether the protocol needs to be updated.
24422
+ *
24423
+ * - `true`: Forces the protocol update to ensure compatibility with the playback configuration or source.
24424
+ * - `false`: Does not update the protocol and continues to use the current configuration.
24425
+ */
24426
+ /** {zh}
24427
+ * @brief 调用此方法更新播放列表,支持更新源、清晰度等相关信息。
24428
+ * @param playlist 播放列表,包含多个 `Source` 类型的元素。
24429
+ * @param target 可选的目标配置项,可以指定清晰度或源。提供这些信息可以帮助更新特定清晰度或线路的播放源。
24430
+ * @param needUpdateProtocol 是否需要更新协议。
24431
+ * - `true`:强制更新协议,以确保播放配置或源的兼容性。
24432
+ * - `false`:不更新协议,继续使用当前配置。
24433
+ */
24410
24434
  async updatePlaylist(playlist, target, needUpdateProtocol = true) {
24411
24435
  var _a;
24412
24436
  if (needUpdateProtocol) {
24413
- await ((_a = this._protocolManager) == null ? void 0 : _a.update({ playlist }));
24437
+ await ((_a = this._protocolManager) == null ? void 0 : _a.update({
24438
+ playlist
24439
+ }));
24414
24440
  }
24415
24441
  return super.updatePlaylist(playlist, target);
24416
24442
  }
@@ -24450,7 +24476,9 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
24450
24476
  teaTracker,
24451
24477
  preProcessUrl: (url2) => {
24452
24478
  if (isType(".ts", url2)) {
24453
- return { url: url2 };
24479
+ return {
24480
+ url: url2
24481
+ };
24454
24482
  }
24455
24483
  return {
24456
24484
  url: generateUrlWithSessionId(url2)
@@ -24458,7 +24486,9 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
24458
24486
  },
24459
24487
  async preparePlugins(url2) {
24460
24488
  if (!protocolManager.enableSelector) {
24461
- await protocolManager.update({ url: url2 });
24489
+ await protocolManager.update({
24490
+ url: url2
24491
+ });
24462
24492
  }
24463
24493
  return protocolManager.getStrategy(
24464
24494
  player,