@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.
@@ -14454,7 +14454,7 @@ class VePlayerBase {
14454
14454
  * @brief Retrieve the player SDK version number.
14455
14455
  */
14456
14456
  get playerVersion() {
14457
- return "2.8.0-rc.2";
14457
+ return "2.8.0-rc.3";
14458
14458
  }
14459
14459
  /** {zh}
14460
14460
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -14975,7 +14975,9 @@ class VePlayerBase {
14975
14975
  if (!url2) {
14976
14976
  const transformedError = transform$1(err, this._i18nManager);
14977
14977
  try {
14978
- const { canEmitError } = await this._beforeFallbackError(transformedError);
14978
+ const { canEmitError } = await this._beforeFallbackError(
14979
+ transformedError
14980
+ );
14979
14981
  if (!canEmitError) {
14980
14982
  return;
14981
14983
  }
@@ -15011,7 +15013,7 @@ class VePlayerBase {
15011
15013
  return transform(event, callback);
15012
15014
  }
15013
15015
  async _switch(targetDefinition) {
15014
- var _a, _b, _c, _d, _e2, _f;
15016
+ var _a, _b, _c, _d, _e2, _f, _g, _h;
15015
15017
  const preDefinition = clonedeep(this._sourceManager.definition);
15016
15018
  const isPaused = this._player.paused && !this._player.isError;
15017
15019
  const {
@@ -15024,9 +15026,9 @@ class VePlayerBase {
15024
15026
  targetDefinition.url = options == null ? void 0 : options.url;
15025
15027
  }
15026
15028
  this._sourceManager.switch(targetDefinition);
15027
- (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
15028
- (_d = (_c = this._player) == null ? void 0 : _c.plugins) == null ? void 0 : _d.definition.renderItemList();
15029
- const isSourceSwitching = ((_e2 = targetDefinition == null ? void 0 : targetDefinition.source) == null ? void 0 : _e2.name) !== ((_f = preDefinition == null ? void 0 : preDefinition.source) == null ? void 0 : _f.name);
15029
+ (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
15030
+ (_f = (_e2 = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e2.definition) == null ? void 0 : _f.renderItemList();
15031
+ 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);
15030
15032
  this._player.config.url = targetDefinition.url;
15031
15033
  if (isSameProtocol) {
15032
15034
  if (isSourceSwitching) {
@@ -21939,7 +21941,7 @@ let Logger$1 = class Logger extends Plugin {
21939
21941
  device_id: (_f = (_e2 = this.player.config) == null ? void 0 : _e2.teaTracker) == null ? void 0 : _f.deviceId,
21940
21942
  error_report_stop: true,
21941
21943
  ext: {
21942
- veplayer_version: "2.8.0-rc.2",
21944
+ veplayer_version: "2.8.0-rc.3",
21943
21945
  flv_version: "3.0.21-rc.21",
21944
21946
  hls_version: "3.0.21-rc.21",
21945
21947
  rts_version: "0.2.1-alpha.30"
@@ -14454,7 +14454,7 @@ class VePlayerBase {
14454
14454
  * @brief Retrieve the player SDK version number.
14455
14455
  */
14456
14456
  get playerVersion() {
14457
- return "2.8.0-rc.2";
14457
+ return "2.8.0-rc.3";
14458
14458
  }
14459
14459
  /** {zh}
14460
14460
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -14975,7 +14975,9 @@ class VePlayerBase {
14975
14975
  if (!url2) {
14976
14976
  const transformedError = transform$1(err, this._i18nManager);
14977
14977
  try {
14978
- const { canEmitError } = await this._beforeFallbackError(transformedError);
14978
+ const { canEmitError } = await this._beforeFallbackError(
14979
+ transformedError
14980
+ );
14979
14981
  if (!canEmitError) {
14980
14982
  return;
14981
14983
  }
@@ -15011,7 +15013,7 @@ class VePlayerBase {
15011
15013
  return transform(event, callback);
15012
15014
  }
15013
15015
  async _switch(targetDefinition) {
15014
- var _a, _b, _c, _d, _e2, _f;
15016
+ var _a, _b, _c, _d, _e2, _f, _g, _h;
15015
15017
  const preDefinition = clonedeep(this._sourceManager.definition);
15016
15018
  const isPaused = this._player.paused && !this._player.isError;
15017
15019
  const {
@@ -15024,9 +15026,9 @@ class VePlayerBase {
15024
15026
  targetDefinition.url = options == null ? void 0 : options.url;
15025
15027
  }
15026
15028
  this._sourceManager.switch(targetDefinition);
15027
- (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
15028
- (_d = (_c = this._player) == null ? void 0 : _c.plugins) == null ? void 0 : _d.definition.renderItemList();
15029
- const isSourceSwitching = ((_e2 = targetDefinition == null ? void 0 : targetDefinition.source) == null ? void 0 : _e2.name) !== ((_f = preDefinition == null ? void 0 : preDefinition.source) == null ? void 0 : _f.name);
15029
+ (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
15030
+ (_f = (_e2 = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e2.definition) == null ? void 0 : _f.renderItemList();
15031
+ 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);
15030
15032
  this._player.config.url = targetDefinition.url;
15031
15033
  if (isSameProtocol) {
15032
15034
  if (isSourceSwitching) {
@@ -21939,7 +21941,7 @@ let Logger$1 = class Logger extends Plugin {
21939
21941
  device_id: (_f = (_e2 = this.player.config) == null ? void 0 : _e2.teaTracker) == null ? void 0 : _f.deviceId,
21940
21942
  error_report_stop: true,
21941
21943
  ext: {
21942
- veplayer_version: "2.8.0-rc.2",
21944
+ veplayer_version: "2.8.0-rc.3",
21943
21945
  flv_version: "3.0.21-rc.21",
21944
21946
  hls_version: "3.0.21-rc.21",
21945
21947
  rts_version: "0.2.1-alpha.30"