@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.
- package/esm/veplayer.development.js +9 -7
- package/esm/veplayer.live.development.js +9 -7
- package/esm/veplayer.live.production.js +2 -2
- package/esm/veplayer.production.js +2 -2
- package/esm/veplayer.vod.development.js +8 -6
- package/esm/veplayer.vod.production.js +2 -2
- package/package.json +1 -1
- package/umd/veplayer.development.js +9 -7
- package/umd/veplayer.live.development.js +9 -7
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.development.js +8 -6
- package/umd/veplayer.vod.production.js +1 -1
package/package.json
CHANGED
|
@@ -14458,7 +14458,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14458
14458
|
* @brief Retrieve the player SDK version number.
|
|
14459
14459
|
*/
|
|
14460
14460
|
get playerVersion() {
|
|
14461
|
-
return "2.8.0-rc.
|
|
14461
|
+
return "2.8.0-rc.3";
|
|
14462
14462
|
}
|
|
14463
14463
|
/** {zh}
|
|
14464
14464
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -14979,7 +14979,9 @@ var __publicField = (obj, key, value) => {
|
|
|
14979
14979
|
if (!url2) {
|
|
14980
14980
|
const transformedError = transform$1(err, this._i18nManager);
|
|
14981
14981
|
try {
|
|
14982
|
-
const { canEmitError } = await this._beforeFallbackError(
|
|
14982
|
+
const { canEmitError } = await this._beforeFallbackError(
|
|
14983
|
+
transformedError
|
|
14984
|
+
);
|
|
14983
14985
|
if (!canEmitError) {
|
|
14984
14986
|
return;
|
|
14985
14987
|
}
|
|
@@ -15015,7 +15017,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15015
15017
|
return transform(event, callback);
|
|
15016
15018
|
}
|
|
15017
15019
|
async _switch(targetDefinition) {
|
|
15018
|
-
var _a, _b, _c, _d, _e2, _f;
|
|
15020
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h;
|
|
15019
15021
|
const preDefinition = clonedeep(this._sourceManager.definition);
|
|
15020
15022
|
const isPaused = this._player.paused && !this._player.isError;
|
|
15021
15023
|
const {
|
|
@@ -15028,9 +15030,9 @@ var __publicField = (obj, key, value) => {
|
|
|
15028
15030
|
targetDefinition.url = options == null ? void 0 : options.url;
|
|
15029
15031
|
}
|
|
15030
15032
|
this._sourceManager.switch(targetDefinition);
|
|
15031
|
-
(_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
|
|
15032
|
-
(
|
|
15033
|
-
const isSourceSwitching = ((
|
|
15033
|
+
(_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
|
|
15034
|
+
(_f = (_e2 = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e2.definition) == null ? void 0 : _f.renderItemList();
|
|
15035
|
+
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);
|
|
15034
15036
|
this._player.config.url = targetDefinition.url;
|
|
15035
15037
|
if (isSameProtocol) {
|
|
15036
15038
|
if (isSourceSwitching) {
|
|
@@ -21943,7 +21945,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21943
21945
|
device_id: (_f = (_e2 = this.player.config) == null ? void 0 : _e2.teaTracker) == null ? void 0 : _f.deviceId,
|
|
21944
21946
|
error_report_stop: true,
|
|
21945
21947
|
ext: {
|
|
21946
|
-
veplayer_version: "2.8.0-rc.
|
|
21948
|
+
veplayer_version: "2.8.0-rc.3",
|
|
21947
21949
|
flv_version: "3.0.21-rc.21",
|
|
21948
21950
|
hls_version: "3.0.21-rc.21",
|
|
21949
21951
|
rts_version: "0.2.1-alpha.30"
|
|
@@ -14458,7 +14458,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14458
14458
|
* @brief Retrieve the player SDK version number.
|
|
14459
14459
|
*/
|
|
14460
14460
|
get playerVersion() {
|
|
14461
|
-
return "2.8.0-rc.
|
|
14461
|
+
return "2.8.0-rc.3";
|
|
14462
14462
|
}
|
|
14463
14463
|
/** {zh}
|
|
14464
14464
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -14979,7 +14979,9 @@ var __publicField = (obj, key, value) => {
|
|
|
14979
14979
|
if (!url2) {
|
|
14980
14980
|
const transformedError = transform$1(err, this._i18nManager);
|
|
14981
14981
|
try {
|
|
14982
|
-
const { canEmitError } = await this._beforeFallbackError(
|
|
14982
|
+
const { canEmitError } = await this._beforeFallbackError(
|
|
14983
|
+
transformedError
|
|
14984
|
+
);
|
|
14983
14985
|
if (!canEmitError) {
|
|
14984
14986
|
return;
|
|
14985
14987
|
}
|
|
@@ -15015,7 +15017,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15015
15017
|
return transform(event, callback);
|
|
15016
15018
|
}
|
|
15017
15019
|
async _switch(targetDefinition) {
|
|
15018
|
-
var _a, _b, _c, _d, _e2, _f;
|
|
15020
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h;
|
|
15019
15021
|
const preDefinition = clonedeep(this._sourceManager.definition);
|
|
15020
15022
|
const isPaused = this._player.paused && !this._player.isError;
|
|
15021
15023
|
const {
|
|
@@ -15028,9 +15030,9 @@ var __publicField = (obj, key, value) => {
|
|
|
15028
15030
|
targetDefinition.url = options == null ? void 0 : options.url;
|
|
15029
15031
|
}
|
|
15030
15032
|
this._sourceManager.switch(targetDefinition);
|
|
15031
|
-
(_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
|
|
15032
|
-
(
|
|
15033
|
-
const isSourceSwitching = ((
|
|
15033
|
+
(_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
|
|
15034
|
+
(_f = (_e2 = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e2.definition) == null ? void 0 : _f.renderItemList();
|
|
15035
|
+
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);
|
|
15034
15036
|
this._player.config.url = targetDefinition.url;
|
|
15035
15037
|
if (isSameProtocol) {
|
|
15036
15038
|
if (isSourceSwitching) {
|
|
@@ -21943,7 +21945,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21943
21945
|
device_id: (_f = (_e2 = this.player.config) == null ? void 0 : _e2.teaTracker) == null ? void 0 : _f.deviceId,
|
|
21944
21946
|
error_report_stop: true,
|
|
21945
21947
|
ext: {
|
|
21946
|
-
veplayer_version: "2.8.0-rc.
|
|
21948
|
+
veplayer_version: "2.8.0-rc.3",
|
|
21947
21949
|
flv_version: "3.0.21-rc.21",
|
|
21948
21950
|
hls_version: "3.0.21-rc.21",
|
|
21949
21951
|
rts_version: "0.2.1-alpha.30"
|