@byteplus/veplayer 1.19.2-rc.11 → 1.19.2-rc.12
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/index.d.ts
CHANGED
|
@@ -7945,6 +7945,20 @@ export declare type IPreloadUpdateConfig = {
|
|
|
7945
7945
|
* @detail Options
|
|
7946
7946
|
*/
|
|
7947
7947
|
export declare type IPreloadResolvedStream = {
|
|
7948
|
+
/** {zh}
|
|
7949
|
+
* @brief HLS 分片数量,覆盖 strategies.preload.sn。
|
|
7950
|
+
*/
|
|
7951
|
+
/** {en}
|
|
7952
|
+
* @brief HLS segment count; overrides strategies.preload.sn.
|
|
7953
|
+
*/
|
|
7954
|
+
sn?: number;
|
|
7955
|
+
/** {zh}
|
|
7956
|
+
* @brief HLS master 子列表索引,覆盖 strategies.preload.level。
|
|
7957
|
+
*/
|
|
7958
|
+
/** {en}
|
|
7959
|
+
* @brief Zero-based HLS master variant index; overrides strategies.preload.level.
|
|
7960
|
+
*/
|
|
7961
|
+
level?: number;
|
|
7948
7962
|
/** {zh}
|
|
7949
7963
|
* @brief 视频 ID
|
|
7950
7964
|
*/
|
|
@@ -8131,16 +8145,30 @@ export declare type IPreloadConfig = {
|
|
|
8131
8145
|
*/
|
|
8132
8146
|
preloadScene?: PreloadScene;
|
|
8133
8147
|
/** {zh}
|
|
8134
|
-
* @brief
|
|
8148
|
+
* @brief 预加载格式,可传数组以同时初始化 MP4 和 HLS。
|
|
8135
8149
|
* - mp4: mp4格式
|
|
8136
8150
|
* - hls: hls格式
|
|
8137
8151
|
* @default mp4
|
|
8138
8152
|
*/
|
|
8139
8153
|
/** {en}
|
|
8140
|
-
* @brief
|
|
8154
|
+
* @brief Preload format. An array initializes both MP4 and HLS.
|
|
8141
8155
|
* @default mp4
|
|
8142
8156
|
*/
|
|
8143
|
-
format?: PreloadFormat;
|
|
8157
|
+
format?: PreloadFormat | PreloadFormat[];
|
|
8158
|
+
/** {zh}
|
|
8159
|
+
* @brief HLS 预载分片数量,正整数,默认 2。
|
|
8160
|
+
*/
|
|
8161
|
+
/** {en}
|
|
8162
|
+
* @brief Number of HLS segments to preload. Positive integer; defaults to 2.
|
|
8163
|
+
*/
|
|
8164
|
+
sn?: number;
|
|
8165
|
+
/** {zh}
|
|
8166
|
+
* @brief HLS master 子列表索引,从 0 开始,默认 0。
|
|
8167
|
+
*/
|
|
8168
|
+
/** {en}
|
|
8169
|
+
* @brief Zero-based HLS master variant index; defaults to 0.
|
|
8170
|
+
*/
|
|
8171
|
+
level?: number;
|
|
8144
8172
|
/** {zh}
|
|
8145
8173
|
* 向前预加载视频个数,Feed流场景时生效
|
|
8146
8174
|
* @default 1
|