@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.
- package/esm/veplayer.biz.live.development.js +1 -1
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.development.js +3 -2
- package/esm/veplayer.live.development.js +3 -2
- package/esm/veplayer.live.production.js +2 -2
- package/esm/veplayer.production.js +2 -2
- package/esm/veplayer.vod.development.js +2 -1
- package/esm/veplayer.vod.production.js +2 -2
- package/package.json +1 -1
- package/umd/veplayer.biz.live.development.js +1 -1
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.development.js +3 -2
- package/umd/veplayer.live.development.js +3 -2
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.development.js +2 -1
- package/umd/veplayer.vod.production.js +1 -1
|
@@ -13336,6 +13336,7 @@ class VePlayerBase {
|
|
|
13336
13336
|
async switch(target, options) {
|
|
13337
13337
|
var _a, _b;
|
|
13338
13338
|
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) {
|
|
13339
|
+
this._sourceManager.updateSources(target);
|
|
13339
13340
|
await this._switchUrl(target);
|
|
13340
13341
|
return this._sourceManager.definition;
|
|
13341
13342
|
}
|
|
@@ -13632,7 +13633,7 @@ class VePlayerBase {
|
|
|
13632
13633
|
async _switchUrl(url) {
|
|
13633
13634
|
const { plugins: newPlugins, options } = await this.prepare(url) || {};
|
|
13634
13635
|
const newUrl = (options == null ? void 0 : options.url) ?? url;
|
|
13635
|
-
this._sourceManager.
|
|
13636
|
+
this._sourceManager.url = newUrl;
|
|
13636
13637
|
if (newPlugins == null ? void 0 : newPlugins.length) {
|
|
13637
13638
|
this._callBeforePlayerInitForUrl(newPlugins, newUrl);
|
|
13638
13639
|
} else {
|
|
@@ -21225,7 +21226,7 @@ class Logger extends Plugin {
|
|
|
21225
21226
|
user_id: this._userId,
|
|
21226
21227
|
device_id: this._deviceId,
|
|
21227
21228
|
ext: {
|
|
21228
|
-
veplayer_version: "2.1.0
|
|
21229
|
+
veplayer_version: "2.1.0",
|
|
21229
21230
|
flv_version: "3.0.10-alpha.4",
|
|
21230
21231
|
hls_version: "3.0.10-alpha.4",
|
|
21231
21232
|
rts_version: "0.2.0-alpha.5"
|
|
@@ -13336,6 +13336,7 @@ class VePlayerBase {
|
|
|
13336
13336
|
async switch(target, options) {
|
|
13337
13337
|
var _a, _b;
|
|
13338
13338
|
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) {
|
|
13339
|
+
this._sourceManager.updateSources(target);
|
|
13339
13340
|
await this._switchUrl(target);
|
|
13340
13341
|
return this._sourceManager.definition;
|
|
13341
13342
|
}
|
|
@@ -13632,7 +13633,7 @@ class VePlayerBase {
|
|
|
13632
13633
|
async _switchUrl(url) {
|
|
13633
13634
|
const { plugins: newPlugins, options } = await this.prepare(url) || {};
|
|
13634
13635
|
const newUrl = (options == null ? void 0 : options.url) ?? url;
|
|
13635
|
-
this._sourceManager.
|
|
13636
|
+
this._sourceManager.url = newUrl;
|
|
13636
13637
|
if (newPlugins == null ? void 0 : newPlugins.length) {
|
|
13637
13638
|
this._callBeforePlayerInitForUrl(newPlugins, newUrl);
|
|
13638
13639
|
} else {
|
|
@@ -21225,7 +21226,7 @@ class Logger extends Plugin {
|
|
|
21225
21226
|
user_id: this._userId,
|
|
21226
21227
|
device_id: this._deviceId,
|
|
21227
21228
|
ext: {
|
|
21228
|
-
veplayer_version: "2.1.0
|
|
21229
|
+
veplayer_version: "2.1.0",
|
|
21229
21230
|
flv_version: "3.0.10-alpha.4",
|
|
21230
21231
|
hls_version: "3.0.10-alpha.4",
|
|
21231
21232
|
rts_version: "0.2.0-alpha.5"
|