@volcengine/veplayer 2.7.1-rc.1 → 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/index.d.ts +155 -121
- package/esm/veplayer.biz.live.development.js +35 -5
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +531 -212
- package/esm/veplayer.development.js +42 -12
- package/esm/veplayer.live.d.ts +531 -212
- package/esm/veplayer.live.development.js +42 -12
- 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 +35 -5
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +531 -212
- package/umd/veplayer.development.js +42 -12
- package/umd/veplayer.live.d.ts +531 -212
- package/umd/veplayer.live.development.js +42 -12
- 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 +531 -212
- package/veplayer.live.d.ts +531 -212
- package/veplayer.vod.d.ts +155 -121
|
@@ -14453,7 +14453,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14453
14453
|
* @brief Retrieve the player SDK version number.
|
|
14454
14454
|
*/
|
|
14455
14455
|
get playerVersion() {
|
|
14456
|
-
return "2.7.1-rc.
|
|
14456
|
+
return "2.7.1-rc.3";
|
|
14457
14457
|
}
|
|
14458
14458
|
/** {zh}
|
|
14459
14459
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -14728,7 +14728,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14728
14728
|
}
|
|
14729
14729
|
}
|
|
14730
14730
|
/** {zh}
|
|
14731
|
-
* @brief
|
|
14731
|
+
* @brief 调用此方法开始播放。
|
|
14732
14732
|
*/
|
|
14733
14733
|
/** {en}
|
|
14734
14734
|
* @brief Starts playback.
|
|
@@ -15012,7 +15012,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15012
15012
|
return transform(event, callback);
|
|
15013
15013
|
}
|
|
15014
15014
|
async _switch(targetDefinition) {
|
|
15015
|
-
var _a, _b, _c, _d, _e, _f;
|
|
15015
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
15016
15016
|
const preDefinition = clonedeep(this._sourceManager.definition);
|
|
15017
15017
|
const isPaused = this._player.paused && !this._player.isError;
|
|
15018
15018
|
const {
|
|
@@ -15025,9 +15025,9 @@ var __publicField = (obj, key, value) => {
|
|
|
15025
15025
|
targetDefinition.url = options == null ? void 0 : options.url;
|
|
15026
15026
|
}
|
|
15027
15027
|
this._sourceManager.switch(targetDefinition);
|
|
15028
|
-
(_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
|
|
15029
|
-
(
|
|
15030
|
-
const isSourceSwitching = ((
|
|
15028
|
+
(_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources) == null ? void 0 : _c.renderItemList();
|
|
15029
|
+
(_f = (_e = (_d = this._player) == null ? void 0 : _d.plugins) == null ? void 0 : _e.definition) == null ? void 0 : _f.renderItemList();
|
|
15030
|
+
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);
|
|
15031
15031
|
this._player.config.url = targetDefinition.url;
|
|
15032
15032
|
if (isSameProtocol) {
|
|
15033
15033
|
if (isSourceSwitching) {
|
|
@@ -22710,10 +22710,10 @@ var __publicField = (obj, key, value) => {
|
|
|
22710
22710
|
device_id: this.config.deviceId,
|
|
22711
22711
|
error_report_stop: true,
|
|
22712
22712
|
ext: {
|
|
22713
|
-
veplayer_version: "2.7.1-rc.
|
|
22713
|
+
veplayer_version: "2.7.1-rc.3",
|
|
22714
22714
|
flv_version: "3.0.21-rc.21",
|
|
22715
22715
|
hls_version: "3.0.21-rc.21",
|
|
22716
|
-
rts_version: "0.2.1-alpha.
|
|
22716
|
+
rts_version: "0.2.1-alpha.32"
|
|
22717
22717
|
}
|
|
22718
22718
|
});
|
|
22719
22719
|
}
|
|
@@ -23902,6 +23902,12 @@ var __publicField = (obj, key, value) => {
|
|
|
23902
23902
|
*/
|
|
23903
23903
|
constructor(options) {
|
|
23904
23904
|
super(options);
|
|
23905
|
+
/** {en}
|
|
23906
|
+
* @hidden
|
|
23907
|
+
*/
|
|
23908
|
+
/** {zh}
|
|
23909
|
+
* @hidden
|
|
23910
|
+
*/
|
|
23905
23911
|
__publicField(this, "_protocolManager");
|
|
23906
23912
|
}
|
|
23907
23913
|
/** {zh}
|
|
@@ -24012,10 +24018,11 @@ var __publicField = (obj, key, value) => {
|
|
|
24012
24018
|
}
|
|
24013
24019
|
/** {zh}
|
|
24014
24020
|
* @brief 调用此方法更新 DRM 配置。
|
|
24021
|
+
* @param config DRM 配置对象,包含 Fairplay DRM 的相关设置。
|
|
24015
24022
|
*/
|
|
24016
24023
|
/** {en}
|
|
24017
24024
|
* @brief Use this method to update DRM configuration.
|
|
24018
|
-
* @param config
|
|
24025
|
+
* @param config A configuration object containing settings for Fairplay DRM.
|
|
24019
24026
|
*/
|
|
24020
24027
|
updateDrmConfig(config) {
|
|
24021
24028
|
var _a, _b, _c;
|
|
@@ -24093,10 +24100,29 @@ var __publicField = (obj, key, value) => {
|
|
|
24093
24100
|
var _a, _b, _c;
|
|
24094
24101
|
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
|
|
24095
24102
|
}
|
|
24103
|
+
/** {en}
|
|
24104
|
+
* @brief This method is used to update the playlist, supporting updates to source, resolution, and related information.
|
|
24105
|
+
* @param playlist The playlist, consisting of multiple `Source` type elements.
|
|
24106
|
+
* @param target An optional target configuration, which can specify the resolution or source. Providing this information helps update the playback source for a specific resolution or stream.
|
|
24107
|
+
* @param needUpdateProtocol Whether the protocol needs to be updated.
|
|
24108
|
+
*
|
|
24109
|
+
* - `true`: Forces the protocol update to ensure compatibility with the playback configuration or source.
|
|
24110
|
+
* - `false`: Does not update the protocol and continues to use the current configuration.
|
|
24111
|
+
*/
|
|
24112
|
+
/** {zh}
|
|
24113
|
+
* @brief 调用此方法更新播放列表,支持更新源、清晰度等相关信息。
|
|
24114
|
+
* @param playlist 播放列表,包含多个 `Source` 类型的元素。
|
|
24115
|
+
* @param target 可选的目标配置项,可以指定清晰度或源。提供这些信息可以帮助更新特定清晰度或线路的播放源。
|
|
24116
|
+
* @param needUpdateProtocol 是否需要更新协议。
|
|
24117
|
+
* - `true`:强制更新协议,以确保播放配置或源的兼容性。
|
|
24118
|
+
* - `false`:不更新协议,继续使用当前配置。
|
|
24119
|
+
*/
|
|
24096
24120
|
async updatePlaylist(playlist, target, needUpdateProtocol = true) {
|
|
24097
24121
|
var _a;
|
|
24098
24122
|
if (needUpdateProtocol) {
|
|
24099
|
-
await ((_a = this._protocolManager) == null ? void 0 : _a.update({
|
|
24123
|
+
await ((_a = this._protocolManager) == null ? void 0 : _a.update({
|
|
24124
|
+
playlist
|
|
24125
|
+
}));
|
|
24100
24126
|
}
|
|
24101
24127
|
return super.updatePlaylist(playlist, target);
|
|
24102
24128
|
}
|
|
@@ -24132,7 +24158,9 @@ var __publicField = (obj, key, value) => {
|
|
|
24132
24158
|
i18nManager: i18n,
|
|
24133
24159
|
preProcessUrl: (url) => {
|
|
24134
24160
|
if (isType(".ts", url)) {
|
|
24135
|
-
return {
|
|
24161
|
+
return {
|
|
24162
|
+
url
|
|
24163
|
+
};
|
|
24136
24164
|
}
|
|
24137
24165
|
return {
|
|
24138
24166
|
url: generateUrlWithSessionId(url)
|
|
@@ -24140,7 +24168,9 @@ var __publicField = (obj, key, value) => {
|
|
|
24140
24168
|
},
|
|
24141
24169
|
async preparePlugins(url) {
|
|
24142
24170
|
if (!protocolManager.enableSelector) {
|
|
24143
|
-
await protocolManager.update({
|
|
24171
|
+
await protocolManager.update({
|
|
24172
|
+
url
|
|
24173
|
+
});
|
|
24144
24174
|
}
|
|
24145
24175
|
return protocolManager.getStrategy(player, i18n);
|
|
24146
24176
|
}
|