@volcengine/veplayer 2.1.0-rc.2 → 2.1.0

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.
@@ -13340,6 +13340,7 @@ var __publicField = (obj, key, value) => {
13340
13340
  async switch(target, options) {
13341
13341
  var _a, _b;
13342
13342
  if (typeof target === "string" && this._sourceManager.sources.length === 1 && ((_b = (_a = this._sourceManager.sources) == null ? void 0 : _a[0].definitions) == null ? void 0 : _b.length) === 1) {
13343
+ this._sourceManager.updateSources(target);
13343
13344
  await this._switchUrl(target);
13344
13345
  return this._sourceManager.definition;
13345
13346
  }
@@ -13636,7 +13637,7 @@ var __publicField = (obj, key, value) => {
13636
13637
  async _switchUrl(url) {
13637
13638
  const { plugins: newPlugins, options } = await this.prepare(url) || {};
13638
13639
  const newUrl = (options == null ? void 0 : options.url) ?? url;
13639
- this._sourceManager.updateSources(newUrl);
13640
+ this._sourceManager.url = newUrl;
13640
13641
  if (newPlugins == null ? void 0 : newPlugins.length) {
13641
13642
  this._callBeforePlayerInitForUrl(newPlugins, newUrl);
13642
13643
  } else {
@@ -21229,7 +21230,7 @@ var __publicField = (obj, key, value) => {
21229
21230
  user_id: this._userId,
21230
21231
  device_id: this._deviceId,
21231
21232
  ext: {
21232
- veplayer_version: "2.1.0-rc.2",
21233
+ veplayer_version: "2.1.0",
21233
21234
  flv_version: "3.0.10-alpha.4",
21234
21235
  hls_version: "3.0.10-alpha.4",
21235
21236
  rts_version: "0.2.0-alpha.5"
@@ -13340,6 +13340,7 @@ var __publicField = (obj, key, value) => {
13340
13340
  async switch(target, options) {
13341
13341
  var _a, _b;
13342
13342
  if (typeof target === "string" && this._sourceManager.sources.length === 1 && ((_b = (_a = this._sourceManager.sources) == null ? void 0 : _a[0].definitions) == null ? void 0 : _b.length) === 1) {
13343
+ this._sourceManager.updateSources(target);
13343
13344
  await this._switchUrl(target);
13344
13345
  return this._sourceManager.definition;
13345
13346
  }
@@ -13636,7 +13637,7 @@ var __publicField = (obj, key, value) => {
13636
13637
  async _switchUrl(url) {
13637
13638
  const { plugins: newPlugins, options } = await this.prepare(url) || {};
13638
13639
  const newUrl = (options == null ? void 0 : options.url) ?? url;
13639
- this._sourceManager.updateSources(newUrl);
13640
+ this._sourceManager.url = newUrl;
13640
13641
  if (newPlugins == null ? void 0 : newPlugins.length) {
13641
13642
  this._callBeforePlayerInitForUrl(newPlugins, newUrl);
13642
13643
  } else {
@@ -21229,7 +21230,7 @@ var __publicField = (obj, key, value) => {
21229
21230
  user_id: this._userId,
21230
21231
  device_id: this._deviceId,
21231
21232
  ext: {
21232
- veplayer_version: "2.1.0-rc.2",
21233
+ veplayer_version: "2.1.0",
21233
21234
  flv_version: "3.0.10-alpha.4",
21234
21235
  hls_version: "3.0.10-alpha.4",
21235
21236
  rts_version: "0.2.0-alpha.5"