@byteplus/veplayer 2.8.0-rc.2 → 2.8.0-rc.4

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.
@@ -14291,7 +14291,7 @@ class VePlayerBase {
14291
14291
  * @brief Retrieve the player SDK version number.
14292
14292
  */
14293
14293
  get playerVersion() {
14294
- return "2.8.0-rc.2";
14294
+ return "2.8.0-rc.4";
14295
14295
  }
14296
14296
  /** {zh}
14297
14297
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -14812,7 +14812,9 @@ class VePlayerBase {
14812
14812
  if (!url) {
14813
14813
  const transformedError = transform$1(err, this._i18nManager);
14814
14814
  try {
14815
- const { canEmitError } = await this._beforeFallbackError(transformedError);
14815
+ const { canEmitError } = await this._beforeFallbackError(
14816
+ transformedError
14817
+ );
14816
14818
  if (!canEmitError) {
14817
14819
  return;
14818
14820
  }
@@ -14848,7 +14850,7 @@ class VePlayerBase {
14848
14850
  return transform(event, callback);
14849
14851
  }
14850
14852
  async _switch(targetDefinition) {
14851
- var _a, _b, _c, _d, _e, _f;
14853
+ var _a, _b, _c, _d, _e, _f, _g, _h;
14852
14854
  const preDefinition = clonedeep(this._sourceManager.definition);
14853
14855
  const isPaused = this._player.paused && !this._player.isError;
14854
14856
  const {
@@ -14861,9 +14863,9 @@ class VePlayerBase {
14861
14863
  targetDefinition.url = options == null ? void 0 : options.url;
14862
14864
  }
14863
14865
  this._sourceManager.switch(targetDefinition);
14864
- (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
14865
- (_d = (_c = this._player) == null ? void 0 : _c.plugins) == null ? void 0 : _d.definition.renderItemList();
14866
- const isSourceSwitching = ((_e = targetDefinition == null ? void 0 : targetDefinition.source) == null ? void 0 : _e.name) !== ((_f = preDefinition == null ? void 0 : preDefinition.source) == null ? void 0 : _f.name);
14866
+ (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
14867
+ (_f = (_e = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e.definition) == null ? void 0 : _f.renderItemList();
14868
+ 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);
14867
14869
  this._player.config.url = targetDefinition.url;
14868
14870
  if (isSameProtocol) {
14869
14871
  if (isSourceSwitching) {