@byteplus/veplayer 2.8.0-rc.2 → 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.
@@ -14295,7 +14295,7 @@ var __publicField = (obj, key, value) => {
14295
14295
  * @brief Retrieve the player SDK version number.
14296
14296
  */
14297
14297
  get playerVersion() {
14298
- return "2.8.0-rc.2";
14298
+ return "2.8.0-rc.3";
14299
14299
  }
14300
14300
  /** {zh}
14301
14301
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -14816,7 +14816,9 @@ var __publicField = (obj, key, value) => {
14816
14816
  if (!url) {
14817
14817
  const transformedError = transform$1(err, this._i18nManager);
14818
14818
  try {
14819
- const { canEmitError } = await this._beforeFallbackError(transformedError);
14819
+ const { canEmitError } = await this._beforeFallbackError(
14820
+ transformedError
14821
+ );
14820
14822
  if (!canEmitError) {
14821
14823
  return;
14822
14824
  }
@@ -14852,7 +14854,7 @@ var __publicField = (obj, key, value) => {
14852
14854
  return transform(event, callback);
14853
14855
  }
14854
14856
  async _switch(targetDefinition) {
14855
- var _a, _b, _c, _d, _e, _f;
14857
+ var _a, _b, _c, _d, _e, _f, _g, _h;
14856
14858
  const preDefinition = clonedeep(this._sourceManager.definition);
14857
14859
  const isPaused = this._player.paused && !this._player.isError;
14858
14860
  const {
@@ -14865,9 +14867,9 @@ var __publicField = (obj, key, value) => {
14865
14867
  targetDefinition.url = options == null ? void 0 : options.url;
14866
14868
  }
14867
14869
  this._sourceManager.switch(targetDefinition);
14868
- (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
14869
- (_d = (_c = this._player) == null ? void 0 : _c.plugins) == null ? void 0 : _d.definition.renderItemList();
14870
- 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);
14870
+ (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
14871
+ (_f = (_e = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e.definition) == null ? void 0 : _f.renderItemList();
14872
+ 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);
14871
14873
  this._player.config.url = targetDefinition.url;
14872
14874
  if (isSameProtocol) {
14873
14875
  if (isSourceSwitching) {