@byteplus/veplayer 2.8.0-rc.1 → 2.8.0-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.
@@ -14458,7 +14458,7 @@ var __publicField = (obj, key, value) => {
14458
14458
  * @brief Retrieve the player SDK version number.
14459
14459
  */
14460
14460
  get playerVersion() {
14461
- return "2.8.0-rc.1";
14461
+ return "2.8.0-rc.3";
14462
14462
  }
14463
14463
  /** {zh}
14464
14464
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -14733,7 +14733,7 @@ var __publicField = (obj, key, value) => {
14733
14733
  }
14734
14734
  }
14735
14735
  /** {zh}
14736
- * @brief 调用此方法开始播放 。
14736
+ * @brief 调用此方法开始播放。
14737
14737
  */
14738
14738
  /** {en}
14739
14739
  * @brief Starts playback.
@@ -15017,7 +15017,7 @@ var __publicField = (obj, key, value) => {
15017
15017
  return transform(event, callback);
15018
15018
  }
15019
15019
  async _switch(targetDefinition) {
15020
- var _a, _b, _c, _d, _e2, _f;
15020
+ var _a, _b, _c, _d, _e2, _f, _g, _h;
15021
15021
  const preDefinition = clonedeep(this._sourceManager.definition);
15022
15022
  const isPaused = this._player.paused && !this._player.isError;
15023
15023
  const {
@@ -15030,9 +15030,9 @@ var __publicField = (obj, key, value) => {
15030
15030
  targetDefinition.url = options == null ? void 0 : options.url;
15031
15031
  }
15032
15032
  this._sourceManager.switch(targetDefinition);
15033
- (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
15034
- (_d = (_c = this._player) == null ? void 0 : _c.plugins) == null ? void 0 : _d.definition.renderItemList();
15035
- const isSourceSwitching = ((_e2 = targetDefinition == null ? void 0 : targetDefinition.source) == null ? void 0 : _e2.name) !== ((_f = preDefinition == null ? void 0 : preDefinition.source) == null ? void 0 : _f.name);
15033
+ (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
15034
+ (_f = (_e2 = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e2.definition) == null ? void 0 : _f.renderItemList();
15035
+ const isSourceSwitching = ((_g = targetDefinition == null ? void 0 : targetDefinition.source) == null ? void 0 : _g.name) !== ((_h = preDefinition == null ? void 0 : preDefinition.source) == null ? void 0 : _h.name);
15036
15036
  this._player.config.url = targetDefinition.url;
15037
15037
  if (isSameProtocol) {
15038
15038
  if (isSourceSwitching) {
@@ -21945,10 +21945,10 @@ var __publicField = (obj, key, value) => {
21945
21945
  device_id: (_f = (_e2 = this.player.config) == null ? void 0 : _e2.teaTracker) == null ? void 0 : _f.deviceId,
21946
21946
  error_report_stop: true,
21947
21947
  ext: {
21948
- veplayer_version: "2.8.0-rc.1",
21948
+ veplayer_version: "2.8.0-rc.3",
21949
21949
  flv_version: "3.0.21-rc.21",
21950
21950
  hls_version: "3.0.21-rc.21",
21951
- rts_version: "0.2.1-alpha.29"
21951
+ rts_version: "0.2.1-alpha.30"
21952
21952
  }
21953
21953
  });
21954
21954
  }
@@ -36936,7 +36936,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
36936
36936
  }
36937
36937
  const { appId, deviceId, Module } = this.config;
36938
36938
  if (appId && deviceId && Module) {
36939
- await Module.bootstrap({
36939
+ Module.bootstrap({
36940
36940
  ...this.config,
36941
36941
  tracker: {
36942
36942
  Collector: this.Collector,
@@ -41483,6 +41483,12 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
41483
41483
  */
41484
41484
  constructor(options) {
41485
41485
  super(options);
41486
+ /** {en}
41487
+ * @hidden
41488
+ */
41489
+ /** {zh}
41490
+ * @hidden
41491
+ */
41486
41492
  __publicField(this, "_protocolManager");
41487
41493
  }
41488
41494
  /** {zh}
@@ -41593,10 +41599,11 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
41593
41599
  }
41594
41600
  /** {zh}
41595
41601
  * @brief 调用此方法更新 DRM 配置。
41602
+ * @param config DRM 配置对象,包含 Fairplay DRM 的相关设置。
41596
41603
  */
41597
41604
  /** {en}
41598
41605
  * @brief Use this method to update DRM configuration.
41599
- * @param config
41606
+ * @param config A configuration object containing settings for Fairplay DRM.
41600
41607
  */
41601
41608
  updateDrmConfig(config2) {
41602
41609
  var _a, _b, _c;
@@ -41674,10 +41681,29 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
41674
41681
  var _a, _b, _c;
41675
41682
  return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
41676
41683
  }
41684
+ /** {en}
41685
+ * @brief This method is used to update the playlist, supporting updates to source, resolution, and related information.
41686
+ * @param playlist The playlist, consisting of multiple `Source` type elements.
41687
+ * @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.
41688
+ * @param needUpdateProtocol Whether the protocol needs to be updated.
41689
+ *
41690
+ * - `true`: Forces the protocol update to ensure compatibility with the playback configuration or source.
41691
+ * - `false`: Does not update the protocol and continues to use the current configuration.
41692
+ */
41693
+ /** {zh}
41694
+ * @brief 调用此方法更新播放列表,支持更新源、清晰度等相关信息。
41695
+ * @param playlist 播放列表,包含多个 `Source` 类型的元素。
41696
+ * @param target 可选的目标配置项,可以指定清晰度或源。提供这些信息可以帮助更新特定清晰度或线路的播放源。
41697
+ * @param needUpdateProtocol 是否需要更新协议。
41698
+ * - `true`:强制更新协议,以确保播放配置或源的兼容性。
41699
+ * - `false`:不更新协议,继续使用当前配置。
41700
+ */
41677
41701
  async updatePlaylist(playlist, target, needUpdateProtocol = true) {
41678
41702
  var _a;
41679
41703
  if (needUpdateProtocol) {
41680
- await ((_a = this._protocolManager) == null ? void 0 : _a.update({ playlist }));
41704
+ await ((_a = this._protocolManager) == null ? void 0 : _a.update({
41705
+ playlist
41706
+ }));
41681
41707
  }
41682
41708
  return super.updatePlaylist(playlist, target);
41683
41709
  }
@@ -41717,7 +41743,9 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
41717
41743
  teaTracker,
41718
41744
  preProcessUrl: (url2) => {
41719
41745
  if (isType(".ts", url2)) {
41720
- return { url: url2 };
41746
+ return {
41747
+ url: url2
41748
+ };
41721
41749
  }
41722
41750
  return {
41723
41751
  url: generateUrlWithSessionId(url2)
@@ -41725,7 +41753,9 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
41725
41753
  },
41726
41754
  async preparePlugins(url2) {
41727
41755
  if (!protocolManager.enableSelector) {
41728
- await protocolManager.update({ url: url2 });
41756
+ await protocolManager.update({
41757
+ url: url2
41758
+ });
41729
41759
  }
41730
41760
  return protocolManager.getStrategy(
41731
41761
  player,