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