@volcengine/veplayer 2.7.1-rc.1 → 2.7.1-rc.2
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 +39 -11
- package/esm/veplayer.live.d.ts +531 -212
- package/esm/veplayer.live.development.js +39 -11
- 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 +3 -5
- package/esm/veplayer.vod.production.js +1 -1
- 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 +39 -11
- package/umd/veplayer.live.d.ts +531 -212
- package/umd/veplayer.live.development.js +39 -11
- 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 +3 -5
- 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.2";
|
|
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.
|
|
@@ -14974,9 +14974,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14974
14974
|
if (!url) {
|
|
14975
14975
|
const transformedError = transform$1(err, this._i18nManager);
|
|
14976
14976
|
try {
|
|
14977
|
-
const { canEmitError } = await this._beforeFallbackError(
|
|
14978
|
-
transformedError
|
|
14979
|
-
);
|
|
14977
|
+
const { canEmitError } = await this._beforeFallbackError(transformedError);
|
|
14980
14978
|
if (!canEmitError) {
|
|
14981
14979
|
return;
|
|
14982
14980
|
}
|
|
@@ -22710,10 +22708,10 @@ var __publicField = (obj, key, value) => {
|
|
|
22710
22708
|
device_id: this.config.deviceId,
|
|
22711
22709
|
error_report_stop: true,
|
|
22712
22710
|
ext: {
|
|
22713
|
-
veplayer_version: "2.7.1-rc.
|
|
22711
|
+
veplayer_version: "2.7.1-rc.2",
|
|
22714
22712
|
flv_version: "3.0.21-rc.21",
|
|
22715
22713
|
hls_version: "3.0.21-rc.21",
|
|
22716
|
-
rts_version: "0.2.1-alpha.
|
|
22714
|
+
rts_version: "0.2.1-alpha.24"
|
|
22717
22715
|
}
|
|
22718
22716
|
});
|
|
22719
22717
|
}
|
|
@@ -23902,6 +23900,12 @@ var __publicField = (obj, key, value) => {
|
|
|
23902
23900
|
*/
|
|
23903
23901
|
constructor(options) {
|
|
23904
23902
|
super(options);
|
|
23903
|
+
/** {en}
|
|
23904
|
+
* @hidden
|
|
23905
|
+
*/
|
|
23906
|
+
/** {zh}
|
|
23907
|
+
* @hidden
|
|
23908
|
+
*/
|
|
23905
23909
|
__publicField(this, "_protocolManager");
|
|
23906
23910
|
}
|
|
23907
23911
|
/** {zh}
|
|
@@ -24012,10 +24016,11 @@ var __publicField = (obj, key, value) => {
|
|
|
24012
24016
|
}
|
|
24013
24017
|
/** {zh}
|
|
24014
24018
|
* @brief 调用此方法更新 DRM 配置。
|
|
24019
|
+
* @param config DRM 配置对象,包含 Fairplay DRM 的相关设置。
|
|
24015
24020
|
*/
|
|
24016
24021
|
/** {en}
|
|
24017
24022
|
* @brief Use this method to update DRM configuration.
|
|
24018
|
-
* @param config
|
|
24023
|
+
* @param config A configuration object containing settings for Fairplay DRM.
|
|
24019
24024
|
*/
|
|
24020
24025
|
updateDrmConfig(config) {
|
|
24021
24026
|
var _a, _b, _c;
|
|
@@ -24093,10 +24098,29 @@ var __publicField = (obj, key, value) => {
|
|
|
24093
24098
|
var _a, _b, _c;
|
|
24094
24099
|
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
|
|
24095
24100
|
}
|
|
24101
|
+
/** {en}
|
|
24102
|
+
* @brief This method is used to update the playlist, supporting updates to source, resolution, and related information.
|
|
24103
|
+
* @param playlist The playlist, consisting of multiple `Source` type elements.
|
|
24104
|
+
* @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.
|
|
24105
|
+
* @param needUpdateProtocol Whether the protocol needs to be updated.
|
|
24106
|
+
*
|
|
24107
|
+
* - `true`: Forces the protocol update to ensure compatibility with the playback configuration or source.
|
|
24108
|
+
* - `false`: Does not update the protocol and continues to use the current configuration.
|
|
24109
|
+
*/
|
|
24110
|
+
/** {zh}
|
|
24111
|
+
* @brief 调用此方法更新播放列表,支持更新源、清晰度等相关信息。
|
|
24112
|
+
* @param playlist 播放列表,包含多个 `Source` 类型的元素。
|
|
24113
|
+
* @param target 可选的目标配置项,可以指定清晰度或源。提供这些信息可以帮助更新特定清晰度或线路的播放源。
|
|
24114
|
+
* @param needUpdateProtocol 是否需要更新协议。
|
|
24115
|
+
* - `true`:强制更新协议,以确保播放配置或源的兼容性。
|
|
24116
|
+
* - `false`:不更新协议,继续使用当前配置。
|
|
24117
|
+
*/
|
|
24096
24118
|
async updatePlaylist(playlist, target, needUpdateProtocol = true) {
|
|
24097
24119
|
var _a;
|
|
24098
24120
|
if (needUpdateProtocol) {
|
|
24099
|
-
await ((_a = this._protocolManager) == null ? void 0 : _a.update({
|
|
24121
|
+
await ((_a = this._protocolManager) == null ? void 0 : _a.update({
|
|
24122
|
+
playlist
|
|
24123
|
+
}));
|
|
24100
24124
|
}
|
|
24101
24125
|
return super.updatePlaylist(playlist, target);
|
|
24102
24126
|
}
|
|
@@ -24132,7 +24156,9 @@ var __publicField = (obj, key, value) => {
|
|
|
24132
24156
|
i18nManager: i18n,
|
|
24133
24157
|
preProcessUrl: (url) => {
|
|
24134
24158
|
if (isType(".ts", url)) {
|
|
24135
|
-
return {
|
|
24159
|
+
return {
|
|
24160
|
+
url
|
|
24161
|
+
};
|
|
24136
24162
|
}
|
|
24137
24163
|
return {
|
|
24138
24164
|
url: generateUrlWithSessionId(url)
|
|
@@ -24140,7 +24166,9 @@ var __publicField = (obj, key, value) => {
|
|
|
24140
24166
|
},
|
|
24141
24167
|
async preparePlugins(url) {
|
|
24142
24168
|
if (!protocolManager.enableSelector) {
|
|
24143
|
-
await protocolManager.update({
|
|
24169
|
+
await protocolManager.update({
|
|
24170
|
+
url
|
|
24171
|
+
});
|
|
24144
24172
|
}
|
|
24145
24173
|
return protocolManager.getStrategy(player, i18n);
|
|
24146
24174
|
}
|