@volcengine/veplayer 1.19.2-rc.12 → 1.19.2-rc.14
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 +31 -3
- package/index.min.js +2 -2
- package/lite.cjs +2 -2
- package/lite.d.ts +36 -1
- 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;
|
|
@@ -1115,10 +1136,24 @@ export interface LiteVeStrategy {
|
|
|
1115
1136
|
export type LiteEncryptInfo = Record<string, unknown>;
|
|
1116
1137
|
/** A direct media entry accepted by Lite preload APIs. */
|
|
1117
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;
|
|
1118
1153
|
vid: string;
|
|
1119
1154
|
url: string;
|
|
1120
1155
|
definition: string;
|
|
1121
|
-
streamType: "mp4";
|
|
1156
|
+
streamType: "mp4" | "hls";
|
|
1122
1157
|
codec: "h264";
|
|
1123
1158
|
bitrate: number;
|
|
1124
1159
|
duration: number;
|