@volcengine/veplayer 2.1.0-rc.1 → 2.1.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.
- package/esm/veplayer.biz.live.development.js +7 -5
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.development.js +10 -7
- package/esm/veplayer.live.development.js +10 -7
- 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 +7 -5
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.development.js +10 -7
- package/umd/veplayer.live.development.js +10 -7
- 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
|
@@ -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.
|
|
13640
|
+
this._sourceManager.url = newUrl;
|
|
13640
13641
|
if (newPlugins == null ? void 0 : newPlugins.length) {
|
|
13641
13642
|
this._callBeforePlayerInitForUrl(newPlugins, newUrl);
|
|
13642
13643
|
} else {
|
|
@@ -21121,14 +21122,16 @@ var __publicField = (obj, key, value) => {
|
|
|
21121
21122
|
}
|
|
21122
21123
|
try {
|
|
21123
21124
|
const urlObject = new URL(url);
|
|
21124
|
-
if ((_a = urlObject == null ? void 0 : urlObject.searchParams) == null ? void 0 : _a.get("_session_id")) {
|
|
21125
|
-
|
|
21125
|
+
if (!((_a = urlObject == null ? void 0 : urlObject.searchParams) == null ? void 0 : _a.get("_session_id"))) {
|
|
21126
|
+
(_b = urlObject == null ? void 0 : urlObject.searchParams) == null ? void 0 : _b.append("_session_id", generateSessionId());
|
|
21126
21127
|
}
|
|
21127
|
-
|
|
21128
|
-
return urlObject.toString();
|
|
21128
|
+
url = urlObject.toString();
|
|
21129
21129
|
} catch (error2) {
|
|
21130
|
-
return url;
|
|
21131
21130
|
}
|
|
21131
|
+
if (withoutProtocol) {
|
|
21132
|
+
return url == null ? void 0 : url.replace(location.protocol, "");
|
|
21133
|
+
}
|
|
21134
|
+
return url;
|
|
21132
21135
|
};
|
|
21133
21136
|
const hashCode = (str) => {
|
|
21134
21137
|
str += "";
|
|
@@ -21227,7 +21230,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21227
21230
|
user_id: this._userId,
|
|
21228
21231
|
device_id: this._deviceId,
|
|
21229
21232
|
ext: {
|
|
21230
|
-
veplayer_version: "2.1.0-rc.
|
|
21233
|
+
veplayer_version: "2.1.0-rc.3",
|
|
21231
21234
|
flv_version: "3.0.10-alpha.4",
|
|
21232
21235
|
hls_version: "3.0.10-alpha.4",
|
|
21233
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.
|
|
13640
|
+
this._sourceManager.url = newUrl;
|
|
13640
13641
|
if (newPlugins == null ? void 0 : newPlugins.length) {
|
|
13641
13642
|
this._callBeforePlayerInitForUrl(newPlugins, newUrl);
|
|
13642
13643
|
} else {
|
|
@@ -21121,14 +21122,16 @@ var __publicField = (obj, key, value) => {
|
|
|
21121
21122
|
}
|
|
21122
21123
|
try {
|
|
21123
21124
|
const urlObject = new URL(url);
|
|
21124
|
-
if ((_a = urlObject == null ? void 0 : urlObject.searchParams) == null ? void 0 : _a.get("_session_id")) {
|
|
21125
|
-
|
|
21125
|
+
if (!((_a = urlObject == null ? void 0 : urlObject.searchParams) == null ? void 0 : _a.get("_session_id"))) {
|
|
21126
|
+
(_b = urlObject == null ? void 0 : urlObject.searchParams) == null ? void 0 : _b.append("_session_id", generateSessionId());
|
|
21126
21127
|
}
|
|
21127
|
-
|
|
21128
|
-
return urlObject.toString();
|
|
21128
|
+
url = urlObject.toString();
|
|
21129
21129
|
} catch (error2) {
|
|
21130
|
-
return url;
|
|
21131
21130
|
}
|
|
21131
|
+
if (withoutProtocol) {
|
|
21132
|
+
return url == null ? void 0 : url.replace(location.protocol, "");
|
|
21133
|
+
}
|
|
21134
|
+
return url;
|
|
21132
21135
|
};
|
|
21133
21136
|
const hashCode = (str) => {
|
|
21134
21137
|
str += "";
|
|
@@ -21227,7 +21230,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21227
21230
|
user_id: this._userId,
|
|
21228
21231
|
device_id: this._deviceId,
|
|
21229
21232
|
ext: {
|
|
21230
|
-
veplayer_version: "2.1.0-rc.
|
|
21233
|
+
veplayer_version: "2.1.0-rc.3",
|
|
21231
21234
|
flv_version: "3.0.10-alpha.4",
|
|
21232
21235
|
hls_version: "3.0.10-alpha.4",
|
|
21233
21236
|
rts_version: "0.2.0-alpha.5"
|