@volcengine/veplayer 2.7.1-rc.2 → 2.7.1-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 +1 -1
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.development.js +10 -8
- package/esm/veplayer.live.development.js +10 -8
- 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.biz.live.development.js +1 -1
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.development.js +10 -8
- package/umd/veplayer.live.development.js +10 -8
- 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
|
@@ -14286,7 +14286,7 @@ class VePlayerBase {
|
|
|
14286
14286
|
* @brief Retrieve the player SDK version number.
|
|
14287
14287
|
*/
|
|
14288
14288
|
get playerVersion() {
|
|
14289
|
-
return "2.7.1-rc.
|
|
14289
|
+
return "2.7.1-rc.3";
|
|
14290
14290
|
}
|
|
14291
14291
|
/** {zh}
|
|
14292
14292
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -14807,7 +14807,9 @@ class VePlayerBase {
|
|
|
14807
14807
|
if (!url) {
|
|
14808
14808
|
const transformedError = transform$1(err, this._i18nManager);
|
|
14809
14809
|
try {
|
|
14810
|
-
const { canEmitError } = await this._beforeFallbackError(
|
|
14810
|
+
const { canEmitError } = await this._beforeFallbackError(
|
|
14811
|
+
transformedError
|
|
14812
|
+
);
|
|
14811
14813
|
if (!canEmitError) {
|
|
14812
14814
|
return;
|
|
14813
14815
|
}
|
|
@@ -14843,7 +14845,7 @@ class VePlayerBase {
|
|
|
14843
14845
|
return transform(event, callback);
|
|
14844
14846
|
}
|
|
14845
14847
|
async _switch(targetDefinition) {
|
|
14846
|
-
var _a, _b, _c, _d, _e, _f;
|
|
14848
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
14847
14849
|
const preDefinition = clonedeep(this._sourceManager.definition);
|
|
14848
14850
|
const isPaused = this._player.paused && !this._player.isError;
|
|
14849
14851
|
const {
|
|
@@ -14856,9 +14858,9 @@ class VePlayerBase {
|
|
|
14856
14858
|
targetDefinition.url = options == null ? void 0 : options.url;
|
|
14857
14859
|
}
|
|
14858
14860
|
this._sourceManager.switch(targetDefinition);
|
|
14859
|
-
(_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
|
|
14860
|
-
(
|
|
14861
|
-
const isSourceSwitching = ((
|
|
14861
|
+
(_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
|
|
14862
|
+
(_f = (_e = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e.definition) == null ? void 0 : _f.renderItemList();
|
|
14863
|
+
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);
|
|
14862
14864
|
this._player.config.url = targetDefinition.url;
|
|
14863
14865
|
if (isSameProtocol) {
|
|
14864
14866
|
if (isSourceSwitching) {
|