@volcengine/veplayer 2.7.1-rc.2 → 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.
@@ -14286,7 +14286,7 @@ class VePlayerBase {
14286
14286
  * @brief Retrieve the player SDK version number.
14287
14287
  */
14288
14288
  get playerVersion() {
14289
- return "2.7.1-rc.2";
14289
+ return "2.7.1-rc.3";
14290
14290
  }
14291
14291
  /** {zh}
14292
14292
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -14807,7 +14807,9 @@ class VePlayerBase {
14807
14807
  if (!url) {
14808
14808
  const transformedError = transform$1(err, this._i18nManager);
14809
14809
  try {
14810
- const { canEmitError } = await this._beforeFallbackError(transformedError);
14810
+ const { canEmitError } = await this._beforeFallbackError(
14811
+ transformedError
14812
+ );
14811
14813
  if (!canEmitError) {
14812
14814
  return;
14813
14815
  }
@@ -14843,7 +14845,7 @@ class VePlayerBase {
14843
14845
  return transform(event, callback);
14844
14846
  }
14845
14847
  async _switch(targetDefinition) {
14846
- var _a, _b, _c, _d, _e, _f;
14848
+ var _a, _b, _c, _d, _e, _f, _g, _h;
14847
14849
  const preDefinition = clonedeep(this._sourceManager.definition);
14848
14850
  const isPaused = this._player.paused && !this._player.isError;
14849
14851
  const {
@@ -14856,9 +14858,9 @@ class VePlayerBase {
14856
14858
  targetDefinition.url = options == null ? void 0 : options.url;
14857
14859
  }
14858
14860
  this._sourceManager.switch(targetDefinition);
14859
- (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
14860
- (_d = (_c = this._player) == null ? void 0 : _c.plugins) == null ? void 0 : _d.definition.renderItemList();
14861
- 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);
14861
+ (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
14862
+ (_f = (_e = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e.definition) == null ? void 0 : _f.renderItemList();
14863
+ 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);
14862
14864
  this._player.config.url = targetDefinition.url;
14863
14865
  if (isSameProtocol) {
14864
14866
  if (isSourceSwitching) {