@byteplus/veplayer 1.20.0-rc.0 → 1.20.0-rc.10
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 +502 -135
- package/index.min.js +2 -2
- package/lite.cjs +2 -2
- package/lite.d.ts +57 -4
- 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,6 +1114,7 @@ export interface LitePlayerPlaybackStateSnapshot {
|
|
|
1093
1114
|
isBeforePlayerCreate: boolean;
|
|
1094
1115
|
albumId: string | null;
|
|
1095
1116
|
episodeId: string | null;
|
|
1117
|
+
vid: string | null;
|
|
1096
1118
|
playbackSessionId: string;
|
|
1097
1119
|
duration: number;
|
|
1098
1120
|
currentTime: number;
|
|
@@ -1114,10 +1136,24 @@ export interface LiteVeStrategy {
|
|
|
1114
1136
|
export type LiteEncryptInfo = Record<string, unknown>;
|
|
1115
1137
|
/** A direct media entry accepted by Lite preload APIs. */
|
|
1116
1138
|
export interface LitePreloadResolvedStream {
|
|
1139
|
+
/** {zh}
|
|
1140
|
+
* @brief HLS 分片数量,覆盖策略默认值。
|
|
1141
|
+
*/
|
|
1142
|
+
/** {en}
|
|
1143
|
+
* @brief HLS segment count; overrides the strategy default.
|
|
1144
|
+
*/
|
|
1145
|
+
sn?: number;
|
|
1146
|
+
/** {zh}
|
|
1147
|
+
* @brief HLS master 子列表索引,覆盖策略默认值。
|
|
1148
|
+
*/
|
|
1149
|
+
/** {en}
|
|
1150
|
+
* @brief Zero-based HLS master variant index; overrides the strategy default.
|
|
1151
|
+
*/
|
|
1152
|
+
level?: number;
|
|
1117
1153
|
vid: string;
|
|
1118
1154
|
url: string;
|
|
1119
1155
|
definition: string;
|
|
1120
|
-
streamType: "mp4";
|
|
1156
|
+
streamType: "mp4" | "hls";
|
|
1121
1157
|
codec: "h264";
|
|
1122
1158
|
bitrate: number;
|
|
1123
1159
|
duration: number;
|
|
@@ -1187,8 +1223,8 @@ export interface LiteDramaVideoInfo {
|
|
|
1187
1223
|
}
|
|
1188
1224
|
/** Short-drama bridge result with only Lite-safe media data. */
|
|
1189
1225
|
export interface LiteDramaInfoResponse {
|
|
1190
|
-
/** {zh} @brief
|
|
1191
|
-
/** {en} @brief
|
|
1226
|
+
/** {zh} @brief 旧回包的顶层 Native 通参;优先使用 data.tracking_context。 */
|
|
1227
|
+
/** {en} @brief Legacy top-level tracking fields; data.tracking_context takes priority. */
|
|
1192
1228
|
tracking_context?: {
|
|
1193
1229
|
enter_from?: string;
|
|
1194
1230
|
minis_type?: string;
|
|
@@ -1198,9 +1234,13 @@ export interface LiteDramaInfoResponse {
|
|
|
1198
1234
|
is_success: number | boolean;
|
|
1199
1235
|
error?: LiteDramaInfoError;
|
|
1200
1236
|
data?: {
|
|
1237
|
+
/** {zh} @brief Native 埋点通参;缺失时不报对应字段。 */
|
|
1238
|
+
/** {en} @brief Native tracking fields; omitted fields are not reported. */
|
|
1239
|
+
tracking_context?: LiteDramaInfoResponse["tracking_context"];
|
|
1201
1240
|
status: number;
|
|
1202
1241
|
drama_info: {
|
|
1203
|
-
|
|
1242
|
+
drama_id?: string;
|
|
1243
|
+
album_id?: string;
|
|
1204
1244
|
album_name?: string;
|
|
1205
1245
|
episode_total_num?: number;
|
|
1206
1246
|
drama_name?: string;
|
|
@@ -1236,6 +1276,19 @@ export interface LiteTTDramaEnv {
|
|
|
1236
1276
|
getDramaInfo: (callback: (res: LiteDramaInfoResponse) => void, options: LiteDramaInfoRequest) => void;
|
|
1237
1277
|
videoSecurityModule?: unknown;
|
|
1238
1278
|
sendLog: (eventName: string, params: Record<string, unknown>) => void;
|
|
1279
|
+
/** {zh}
|
|
1280
|
+
* @hidden
|
|
1281
|
+
* @brief 当前在播短剧身份变化通知,由宿主集成层消费。
|
|
1282
|
+
*/
|
|
1283
|
+
/** {en}
|
|
1284
|
+
* @hidden
|
|
1285
|
+
* @brief Notifies the host integration when the current drama playback identity changes.
|
|
1286
|
+
*/
|
|
1287
|
+
onCurrentDramaPlaybackContextChange?: (context: {
|
|
1288
|
+
albumId: string | null;
|
|
1289
|
+
episodeId: string | null;
|
|
1290
|
+
vid: string | null;
|
|
1291
|
+
} | null) => boolean | void;
|
|
1239
1292
|
getTokenVerifySecret?: () => Promise<string>;
|
|
1240
1293
|
}
|
|
1241
1294
|
export interface LiteDefaultConfig {
|