@volcengine/veplayer 1.19.2-rc.1 → 1.20.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/index.d.ts +35 -40
- package/index.min.js +2 -2
- package/lite.cjs +2 -2
- package/lite.d.ts +40 -36
- package/lite.esm.mjs +2 -2
- package/lite.min.js +2 -2
- package/package.json +1 -1
- package/plugin/hlsEncrypt.js +2 -2
- package/plugin/hlsjsPro.js +2 -2
- package/plugin/modules/DashAbralgo.mjs +1 -1
- package/plugin/modules/XGVideo.mjs +1 -1
- package/plugin/modules/danmuMask.mjs +1 -1
- package/plugin/modules/danmujs.mjs +1 -1
- package/plugin/modules/dash.mjs +1 -1
- package/plugin/modules/flv.mjs +1 -1
- package/plugin/modules/hls.mjs +1 -1
- package/plugin/modules/hlsEncrypt.mjs +2 -2
- package/plugin/modules/hlsjs.mjs +1 -1
- package/plugin/modules/hlsjsPro.mjs +2 -2
- package/plugin/modules/mp4Encrypt.mjs +1 -1
- package/plugin/modules/preloader.mjs +1 -1
- package/plugin/modules/streamprobe.mjs +1 -1
- package/plugin/modules/vestrategy.mjs +1 -1
- package/plugin/modules/vestrategy_adapt_range.mjs +1 -1
- package/plugin/modules/vestrategy_h265.mjs +1 -1
- package/plugin/modules/vestrategy_preload.mjs +2 -2
- package/plugin/vestrategy_preload.js +1 -1
package/lite.d.ts
CHANGED
|
@@ -1039,6 +1039,27 @@ export type LitePreloadScene = 0 | 1;
|
|
|
1039
1039
|
export type LiteServiceConfigMode = "remote" | "local-only";
|
|
1040
1040
|
/** Lite-safe preload strategy configuration. */
|
|
1041
1041
|
export interface LitePreloadStrategyConfig {
|
|
1042
|
+
/** {zh}
|
|
1043
|
+
* @brief 预加载格式;数组可同时初始化 MP4 和 HLS,默认 MP4。
|
|
1044
|
+
*/
|
|
1045
|
+
/** {en}
|
|
1046
|
+
* @brief Preload format. An array initializes MP4 and HLS; defaults to MP4.
|
|
1047
|
+
*/
|
|
1048
|
+
format?: "mp4" | "hls" | Array<"mp4" | "hls">;
|
|
1049
|
+
/** {zh}
|
|
1050
|
+
* @brief HLS 分片数量,正整数,默认 2。
|
|
1051
|
+
*/
|
|
1052
|
+
/** {en}
|
|
1053
|
+
* @brief HLS segment count. Positive integer; defaults to 2.
|
|
1054
|
+
*/
|
|
1055
|
+
sn?: number;
|
|
1056
|
+
/** {zh}
|
|
1057
|
+
* @brief HLS master 子列表索引,从 0 开始,默认 0。
|
|
1058
|
+
*/
|
|
1059
|
+
/** {en}
|
|
1060
|
+
* @brief Zero-based HLS master variant index; defaults to 0.
|
|
1061
|
+
*/
|
|
1062
|
+
level?: number;
|
|
1042
1063
|
preloadScene?: LitePreloadScene;
|
|
1043
1064
|
prevCount?: number;
|
|
1044
1065
|
nextCount?: number;
|
|
@@ -1093,7 +1114,6 @@ export interface LitePlayerPlaybackStateSnapshot {
|
|
|
1093
1114
|
isBeforePlayerCreate: boolean;
|
|
1094
1115
|
albumId: string | null;
|
|
1095
1116
|
episodeId: string | null;
|
|
1096
|
-
vid: string | null;
|
|
1097
1117
|
playbackSessionId: string;
|
|
1098
1118
|
duration: number;
|
|
1099
1119
|
currentTime: number;
|
|
@@ -1115,10 +1135,24 @@ export interface LiteVeStrategy {
|
|
|
1115
1135
|
export type LiteEncryptInfo = Record<string, unknown>;
|
|
1116
1136
|
/** A direct media entry accepted by Lite preload APIs. */
|
|
1117
1137
|
export interface LitePreloadResolvedStream {
|
|
1138
|
+
/** {zh}
|
|
1139
|
+
* @brief HLS 分片数量,覆盖策略默认值。
|
|
1140
|
+
*/
|
|
1141
|
+
/** {en}
|
|
1142
|
+
* @brief HLS segment count; overrides the strategy default.
|
|
1143
|
+
*/
|
|
1144
|
+
sn?: number;
|
|
1145
|
+
/** {zh}
|
|
1146
|
+
* @brief HLS master 子列表索引,覆盖策略默认值。
|
|
1147
|
+
*/
|
|
1148
|
+
/** {en}
|
|
1149
|
+
* @brief Zero-based HLS master variant index; overrides the strategy default.
|
|
1150
|
+
*/
|
|
1151
|
+
level?: number;
|
|
1118
1152
|
vid: string;
|
|
1119
1153
|
url: string;
|
|
1120
1154
|
definition: string;
|
|
1121
|
-
streamType: "mp4";
|
|
1155
|
+
streamType: "mp4" | "hls";
|
|
1122
1156
|
codec: "h264";
|
|
1123
1157
|
bitrate: number;
|
|
1124
1158
|
duration: number;
|
|
@@ -1188,35 +1222,18 @@ export interface LiteDramaVideoInfo {
|
|
|
1188
1222
|
}
|
|
1189
1223
|
/** Short-drama bridge result with only Lite-safe media data. */
|
|
1190
1224
|
export interface LiteDramaInfoResponse {
|
|
1191
|
-
/** {zh} @brief 旧回包的顶层 Native 通参;优先使用 data.tracking_context。 */
|
|
1192
|
-
/** {en} @brief Legacy top-level tracking fields; data.tracking_context takes priority. */
|
|
1193
|
-
tracking_context?: {
|
|
1194
|
-
enter_from?: string;
|
|
1195
|
-
minis_type?: string;
|
|
1196
|
-
minis_id?: string;
|
|
1197
|
-
ttoclid?: string;
|
|
1198
|
-
};
|
|
1199
1225
|
is_success: number | boolean;
|
|
1200
1226
|
error?: LiteDramaInfoError;
|
|
1201
1227
|
data?: {
|
|
1202
|
-
/** {zh} @brief Native 埋点通参;缺失时不报对应字段。 */
|
|
1203
|
-
/** {en} @brief Native tracking fields; omitted fields are not reported. */
|
|
1204
|
-
tracking_context?: LiteDramaInfoResponse["tracking_context"];
|
|
1205
1228
|
status: number;
|
|
1206
1229
|
drama_info: {
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
drama_name?: string;
|
|
1212
|
-
album_cover?: string;
|
|
1213
|
-
drama_cover?: string;
|
|
1214
|
-
album_description?: string;
|
|
1215
|
-
drama_description?: string;
|
|
1230
|
+
album_id: string;
|
|
1231
|
+
drama_name: string;
|
|
1232
|
+
drama_cover: string;
|
|
1233
|
+
drama_description: string;
|
|
1216
1234
|
};
|
|
1217
1235
|
episode_info: {
|
|
1218
1236
|
episode_id: string;
|
|
1219
|
-
episode_current_num?: number;
|
|
1220
1237
|
episode_name: string;
|
|
1221
1238
|
episode_cover: string;
|
|
1222
1239
|
episode_description: string;
|
|
@@ -1241,19 +1258,6 @@ export interface LiteTTDramaEnv {
|
|
|
1241
1258
|
getDramaInfo: (callback: (res: LiteDramaInfoResponse) => void, options: LiteDramaInfoRequest) => void;
|
|
1242
1259
|
videoSecurityModule?: unknown;
|
|
1243
1260
|
sendLog: (eventName: string, params: Record<string, unknown>) => void;
|
|
1244
|
-
/** {zh}
|
|
1245
|
-
* @hidden
|
|
1246
|
-
* @brief 当前在播短剧身份变化通知,由宿主集成层消费。
|
|
1247
|
-
*/
|
|
1248
|
-
/** {en}
|
|
1249
|
-
* @hidden
|
|
1250
|
-
* @brief Notifies the host integration when the current drama playback identity changes.
|
|
1251
|
-
*/
|
|
1252
|
-
onCurrentDramaPlaybackContextChange?: (context: {
|
|
1253
|
-
albumId: string | null;
|
|
1254
|
-
episodeId: string | null;
|
|
1255
|
-
vid: string | null;
|
|
1256
|
-
} | null) => boolean | void;
|
|
1257
1261
|
getTokenVerifySecret?: () => Promise<string>;
|
|
1258
1262
|
}
|
|
1259
1263
|
export interface LiteDefaultConfig {
|