@volcengine/veplayer 2.8.2 → 2.9.0-rc.1
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 +28487 -3679
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +151 -1
- package/esm/veplayer.development.js +25348 -535
- package/esm/veplayer.live.d.ts +151 -1
- package/esm/veplayer.live.development.js +25348 -535
- package/esm/veplayer.live.production.js +3 -3
- package/esm/veplayer.production.js +3 -3
- package/esm/veplayer.vod.development.js +9 -6
- package/esm/veplayer.vod.production.js +2 -2
- package/package.json +1 -1
- package/umd/veplayer.biz.live.development.js +28483 -3675
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +151 -1
- package/umd/veplayer.development.js +25340 -527
- package/umd/veplayer.live.d.ts +151 -1
- package/umd/veplayer.live.development.js +25340 -527
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.development.js +9 -6
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +151 -1
- package/veplayer.live.d.ts +151 -1
|
@@ -14383,7 +14383,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14383
14383
|
* @brief Retrieve the player SDK version number.
|
|
14384
14384
|
*/
|
|
14385
14385
|
get playerVersion() {
|
|
14386
|
-
return "2.
|
|
14386
|
+
return "2.9.0-rc.1";
|
|
14387
14387
|
}
|
|
14388
14388
|
/** {zh}
|
|
14389
14389
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -14567,7 +14567,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14567
14567
|
* @param Playlist The updated list.
|
|
14568
14568
|
* @param Target The default playback resource after the update.
|
|
14569
14569
|
*/
|
|
14570
|
-
updatePlaylist(playlist, target) {
|
|
14570
|
+
async updatePlaylist(playlist, target) {
|
|
14571
14571
|
const sourceManager = this._sourceManager.updateSources(playlist, target);
|
|
14572
14572
|
return this._switch(sourceManager.definition);
|
|
14573
14573
|
}
|
|
@@ -14958,6 +14958,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14958
14958
|
(_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
|
|
14959
14959
|
(_f = (_e = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e.definition) == null ? void 0 : _f.renderItemList();
|
|
14960
14960
|
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);
|
|
14961
|
+
const isDefinitionSwitching = (targetDefinition == null ? void 0 : targetDefinition.definition) !== (preDefinition == null ? void 0 : preDefinition.definition);
|
|
14961
14962
|
this._player.config.url = targetDefinition.url;
|
|
14962
14963
|
if (isSameProtocol) {
|
|
14963
14964
|
if (isSourceSwitching) {
|
|
@@ -14967,16 +14968,18 @@ var __publicField = (obj, key, value) => {
|
|
|
14967
14968
|
this._player.changeDefinition(targetDefinition, preDefinition);
|
|
14968
14969
|
}
|
|
14969
14970
|
} else {
|
|
14970
|
-
|
|
14971
|
-
|
|
14972
|
-
|
|
14971
|
+
if (isDefinitionSwitching || isSourceSwitching) {
|
|
14972
|
+
this.emit(
|
|
14973
|
+
isSourceSwitching ? Events.SOURCE_CHANGE : Events.DEFINITION_CHANGE
|
|
14974
|
+
);
|
|
14975
|
+
}
|
|
14973
14976
|
await this._switchDifferentProtocolUrl(
|
|
14974
14977
|
newPlugins,
|
|
14975
14978
|
targetDefinition.url,
|
|
14976
14979
|
isPaused,
|
|
14977
14980
|
useSrc
|
|
14978
14981
|
);
|
|
14979
|
-
|
|
14982
|
+
isDefinitionSwitching && this.emit(Events.AFTER_DEFINITION_CHANGE);
|
|
14980
14983
|
}
|
|
14981
14984
|
}
|
|
14982
14985
|
async _switchDifferentProtocolUrl(plugins, url, isPaused, useSrc) {
|