@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.
@@ -14453,7 +14453,7 @@ var __publicField = (obj, key, value) => {
14453
14453
  * @brief Retrieve the player SDK version number.
14454
14454
  */
14455
14455
  get playerVersion() {
14456
- return "2.7.1-rc.2";
14456
+ return "2.7.1-rc.4";
14457
14457
  }
14458
14458
  /** {zh}
14459
14459
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -14974,7 +14974,9 @@ var __publicField = (obj, key, value) => {
14974
14974
  if (!url) {
14975
14975
  const transformedError = transform$1(err, this._i18nManager);
14976
14976
  try {
14977
- const { canEmitError } = await this._beforeFallbackError(transformedError);
14977
+ const { canEmitError } = await this._beforeFallbackError(
14978
+ transformedError
14979
+ );
14978
14980
  if (!canEmitError) {
14979
14981
  return;
14980
14982
  }
@@ -15010,7 +15012,7 @@ var __publicField = (obj, key, value) => {
15010
15012
  return transform(event, callback);
15011
15013
  }
15012
15014
  async _switch(targetDefinition) {
15013
- var _a, _b, _c, _d, _e, _f;
15015
+ var _a, _b, _c, _d, _e, _f, _g, _h;
15014
15016
  const preDefinition = clonedeep(this._sourceManager.definition);
15015
15017
  const isPaused = this._player.paused && !this._player.isError;
15016
15018
  const {
@@ -15023,9 +15025,9 @@ var __publicField = (obj, key, value) => {
15023
15025
  targetDefinition.url = options == null ? void 0 : options.url;
15024
15026
  }
15025
15027
  this._sourceManager.switch(targetDefinition);
15026
- (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
15027
- (_d = (_c = this._player) == null ? void 0 : _c.plugins) == null ? void 0 : _d.definition.renderItemList();
15028
- 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);
15028
+ (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
15029
+ (_f = (_e = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e.definition) == null ? void 0 : _f.renderItemList();
15030
+ 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);
15029
15031
  this._player.config.url = targetDefinition.url;
15030
15032
  if (isSameProtocol) {
15031
15033
  if (isSourceSwitching) {
@@ -22708,10 +22710,10 @@ var __publicField = (obj, key, value) => {
22708
22710
  device_id: this.config.deviceId,
22709
22711
  error_report_stop: true,
22710
22712
  ext: {
22711
- veplayer_version: "2.7.1-rc.2",
22713
+ veplayer_version: "2.7.1-rc.4",
22712
22714
  flv_version: "3.0.21-rc.21",
22713
22715
  hls_version: "3.0.21-rc.21",
22714
- rts_version: "0.2.1-alpha.24"
22716
+ rts_version: "0.2.1-alpha.32"
22715
22717
  }
22716
22718
  });
22717
22719
  }
@@ -14453,7 +14453,7 @@ var __publicField = (obj, key, value) => {
14453
14453
  * @brief Retrieve the player SDK version number.
14454
14454
  */
14455
14455
  get playerVersion() {
14456
- return "2.7.1-rc.2";
14456
+ return "2.7.1-rc.4";
14457
14457
  }
14458
14458
  /** {zh}
14459
14459
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -14974,7 +14974,9 @@ var __publicField = (obj, key, value) => {
14974
14974
  if (!url) {
14975
14975
  const transformedError = transform$1(err, this._i18nManager);
14976
14976
  try {
14977
- const { canEmitError } = await this._beforeFallbackError(transformedError);
14977
+ const { canEmitError } = await this._beforeFallbackError(
14978
+ transformedError
14979
+ );
14978
14980
  if (!canEmitError) {
14979
14981
  return;
14980
14982
  }
@@ -15010,7 +15012,7 @@ var __publicField = (obj, key, value) => {
15010
15012
  return transform(event, callback);
15011
15013
  }
15012
15014
  async _switch(targetDefinition) {
15013
- var _a, _b, _c, _d, _e, _f;
15015
+ var _a, _b, _c, _d, _e, _f, _g, _h;
15014
15016
  const preDefinition = clonedeep(this._sourceManager.definition);
15015
15017
  const isPaused = this._player.paused && !this._player.isError;
15016
15018
  const {
@@ -15023,9 +15025,9 @@ var __publicField = (obj, key, value) => {
15023
15025
  targetDefinition.url = options == null ? void 0 : options.url;
15024
15026
  }
15025
15027
  this._sourceManager.switch(targetDefinition);
15026
- (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
15027
- (_d = (_c = this._player) == null ? void 0 : _c.plugins) == null ? void 0 : _d.definition.renderItemList();
15028
- 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);
15028
+ (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
15029
+ (_f = (_e = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e.definition) == null ? void 0 : _f.renderItemList();
15030
+ 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);
15029
15031
  this._player.config.url = targetDefinition.url;
15030
15032
  if (isSameProtocol) {
15031
15033
  if (isSourceSwitching) {
@@ -22708,10 +22710,10 @@ var __publicField = (obj, key, value) => {
22708
22710
  device_id: this.config.deviceId,
22709
22711
  error_report_stop: true,
22710
22712
  ext: {
22711
- veplayer_version: "2.7.1-rc.2",
22713
+ veplayer_version: "2.7.1-rc.4",
22712
22714
  flv_version: "3.0.21-rc.21",
22713
22715
  hls_version: "3.0.21-rc.21",
22714
- rts_version: "0.2.1-alpha.24"
22716
+ rts_version: "0.2.1-alpha.32"
22715
22717
  }
22716
22718
  });
22717
22719
  }