@volcengine/veplayer 2.7.1-rc.2 → 2.7.1-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.
@@ -14449,7 +14449,7 @@ class VePlayerBase {
14449
14449
  * @brief Retrieve the player SDK version number.
14450
14450
  */
14451
14451
  get playerVersion() {
14452
- return "2.7.1-rc.2";
14452
+ return "2.7.1-rc.4";
14453
14453
  }
14454
14454
  /** {zh}
14455
14455
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -14970,7 +14970,9 @@ class VePlayerBase {
14970
14970
  if (!url) {
14971
14971
  const transformedError = transform$1(err, this._i18nManager);
14972
14972
  try {
14973
- const { canEmitError } = await this._beforeFallbackError(transformedError);
14973
+ const { canEmitError } = await this._beforeFallbackError(
14974
+ transformedError
14975
+ );
14974
14976
  if (!canEmitError) {
14975
14977
  return;
14976
14978
  }
@@ -15006,7 +15008,7 @@ class VePlayerBase {
15006
15008
  return transform(event, callback);
15007
15009
  }
15008
15010
  async _switch(targetDefinition) {
15009
- var _a, _b, _c, _d, _e, _f;
15011
+ var _a, _b, _c, _d, _e, _f, _g, _h;
15010
15012
  const preDefinition = clonedeep(this._sourceManager.definition);
15011
15013
  const isPaused = this._player.paused && !this._player.isError;
15012
15014
  const {
@@ -15019,9 +15021,9 @@ class VePlayerBase {
15019
15021
  targetDefinition.url = options == null ? void 0 : options.url;
15020
15022
  }
15021
15023
  this._sourceManager.switch(targetDefinition);
15022
- (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
15023
- (_d = (_c = this._player) == null ? void 0 : _c.plugins) == null ? void 0 : _d.definition.renderItemList();
15024
- 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);
15024
+ (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
15025
+ (_f = (_e = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e.definition) == null ? void 0 : _f.renderItemList();
15026
+ 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);
15025
15027
  this._player.config.url = targetDefinition.url;
15026
15028
  if (isSameProtocol) {
15027
15029
  if (isSourceSwitching) {
@@ -22704,10 +22706,10 @@ class Logger extends Plugin {
22704
22706
  device_id: this.config.deviceId,
22705
22707
  error_report_stop: true,
22706
22708
  ext: {
22707
- veplayer_version: "2.7.1-rc.2",
22709
+ veplayer_version: "2.7.1-rc.4",
22708
22710
  flv_version: "3.0.21-rc.21",
22709
22711
  hls_version: "3.0.21-rc.21",
22710
- rts_version: "0.2.1-alpha.24"
22712
+ rts_version: "0.2.1-alpha.32"
22711
22713
  }
22712
22714
  });
22713
22715
  }
@@ -14449,7 +14449,7 @@ class VePlayerBase {
14449
14449
  * @brief Retrieve the player SDK version number.
14450
14450
  */
14451
14451
  get playerVersion() {
14452
- return "2.7.1-rc.2";
14452
+ return "2.7.1-rc.4";
14453
14453
  }
14454
14454
  /** {zh}
14455
14455
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -14970,7 +14970,9 @@ class VePlayerBase {
14970
14970
  if (!url) {
14971
14971
  const transformedError = transform$1(err, this._i18nManager);
14972
14972
  try {
14973
- const { canEmitError } = await this._beforeFallbackError(transformedError);
14973
+ const { canEmitError } = await this._beforeFallbackError(
14974
+ transformedError
14975
+ );
14974
14976
  if (!canEmitError) {
14975
14977
  return;
14976
14978
  }
@@ -15006,7 +15008,7 @@ class VePlayerBase {
15006
15008
  return transform(event, callback);
15007
15009
  }
15008
15010
  async _switch(targetDefinition) {
15009
- var _a, _b, _c, _d, _e, _f;
15011
+ var _a, _b, _c, _d, _e, _f, _g, _h;
15010
15012
  const preDefinition = clonedeep(this._sourceManager.definition);
15011
15013
  const isPaused = this._player.paused && !this._player.isError;
15012
15014
  const {
@@ -15019,9 +15021,9 @@ class VePlayerBase {
15019
15021
  targetDefinition.url = options == null ? void 0 : options.url;
15020
15022
  }
15021
15023
  this._sourceManager.switch(targetDefinition);
15022
- (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
15023
- (_d = (_c = this._player) == null ? void 0 : _c.plugins) == null ? void 0 : _d.definition.renderItemList();
15024
- 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);
15024
+ (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
15025
+ (_f = (_e = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e.definition) == null ? void 0 : _f.renderItemList();
15026
+ 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);
15025
15027
  this._player.config.url = targetDefinition.url;
15026
15028
  if (isSameProtocol) {
15027
15029
  if (isSourceSwitching) {
@@ -22704,10 +22706,10 @@ class Logger extends Plugin {
22704
22706
  device_id: this.config.deviceId,
22705
22707
  error_report_stop: true,
22706
22708
  ext: {
22707
- veplayer_version: "2.7.1-rc.2",
22709
+ veplayer_version: "2.7.1-rc.4",
22708
22710
  flv_version: "3.0.21-rc.21",
22709
22711
  hls_version: "3.0.21-rc.21",
22710
- rts_version: "0.2.1-alpha.24"
22712
+ rts_version: "0.2.1-alpha.32"
22711
22713
  }
22712
22714
  });
22713
22715
  }