@byteplus/veplayer 2.8.0-rc.1 → 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/index.d.ts +155 -121
- package/esm/veplayer.biz.live.development.js +36 -6
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +513 -212
- package/esm/veplayer.development.js +43 -13
- package/esm/veplayer.live.d.ts +513 -212
- package/esm/veplayer.live.development.js +43 -13
- package/esm/veplayer.live.production.js +2 -2
- package/esm/veplayer.production.js +2 -2
- package/esm/veplayer.vod.d.ts +155 -121
- package/esm/veplayer.vod.development.js +6 -6
- package/esm/veplayer.vod.production.js +2 -2
- package/package.json +1 -1
- package/umd/index.d.ts +155 -121
- package/umd/veplayer.biz.live.development.js +36 -6
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +513 -212
- package/umd/veplayer.development.js +43 -13
- package/umd/veplayer.live.d.ts +513 -212
- package/umd/veplayer.live.development.js +43 -13
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +155 -121
- package/umd/veplayer.vod.development.js +6 -6
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +513 -212
- package/veplayer.live.d.ts +513 -212
- package/veplayer.vod.d.ts +155 -121
|
@@ -14291,7 +14291,7 @@ class VePlayerBase {
|
|
|
14291
14291
|
* @brief Retrieve the player SDK version number.
|
|
14292
14292
|
*/
|
|
14293
14293
|
get playerVersion() {
|
|
14294
|
-
return "2.8.0-rc.
|
|
14294
|
+
return "2.8.0-rc.3";
|
|
14295
14295
|
}
|
|
14296
14296
|
/** {zh}
|
|
14297
14297
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -14566,7 +14566,7 @@ class VePlayerBase {
|
|
|
14566
14566
|
}
|
|
14567
14567
|
}
|
|
14568
14568
|
/** {zh}
|
|
14569
|
-
* @brief
|
|
14569
|
+
* @brief 调用此方法开始播放。
|
|
14570
14570
|
*/
|
|
14571
14571
|
/** {en}
|
|
14572
14572
|
* @brief Starts playback.
|
|
@@ -14850,7 +14850,7 @@ class VePlayerBase {
|
|
|
14850
14850
|
return transform(event, callback);
|
|
14851
14851
|
}
|
|
14852
14852
|
async _switch(targetDefinition) {
|
|
14853
|
-
var _a, _b, _c, _d, _e, _f;
|
|
14853
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
14854
14854
|
const preDefinition = clonedeep(this._sourceManager.definition);
|
|
14855
14855
|
const isPaused = this._player.paused && !this._player.isError;
|
|
14856
14856
|
const {
|
|
@@ -14863,9 +14863,9 @@ class VePlayerBase {
|
|
|
14863
14863
|
targetDefinition.url = options == null ? void 0 : options.url;
|
|
14864
14864
|
}
|
|
14865
14865
|
this._sourceManager.switch(targetDefinition);
|
|
14866
|
-
(_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
|
|
14867
|
-
(
|
|
14868
|
-
const isSourceSwitching = ((
|
|
14866
|
+
(_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
|
|
14867
|
+
(_f = (_e = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e.definition) == null ? void 0 : _f.renderItemList();
|
|
14868
|
+
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);
|
|
14869
14869
|
this._player.config.url = targetDefinition.url;
|
|
14870
14870
|
if (isSameProtocol) {
|
|
14871
14871
|
if (isSourceSwitching) {
|