@byteplus/veplayer 1.15.3-rc.34 → 1.15.3-rc.35
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 +54 -6
- package/index.min.js +2 -2
- package/lite.cjs +2 -2
- package/lite.d.ts +30 -0
- package/lite.esm.mjs +2 -2
- package/lite.min.js +2 -2
- package/package.json +1 -1
- 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 +1 -1
- 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 +1 -1
package/lite.d.ts
CHANGED
|
@@ -116,6 +116,32 @@ export interface LitePlayAuthTokenConfig {
|
|
|
116
116
|
autoDemoteDefinitionTextKey?: string;
|
|
117
117
|
urlQueryParams?: Record<string, string>;
|
|
118
118
|
}
|
|
119
|
+
/** Minis short-drama transcoding options exposed by Lite. */
|
|
120
|
+
export interface LiteTranscodeParam {
|
|
121
|
+
format?: string;
|
|
122
|
+
codec?: string;
|
|
123
|
+
definition?: string;
|
|
124
|
+
fileType?: string;
|
|
125
|
+
needThumbs?: string;
|
|
126
|
+
needBarrageMask?: string;
|
|
127
|
+
unionInfo?: string;
|
|
128
|
+
quality?: string;
|
|
129
|
+
drmKek?: string;
|
|
130
|
+
jsPlayer?: string;
|
|
131
|
+
}
|
|
132
|
+
/** Snake-case transcode parameters passed to the host drama bridge. */
|
|
133
|
+
export interface LiteDramaInfoTranscodeParam {
|
|
134
|
+
format?: string;
|
|
135
|
+
codec?: string;
|
|
136
|
+
definition?: string;
|
|
137
|
+
file_type?: string;
|
|
138
|
+
need_thumbs?: string;
|
|
139
|
+
need_barrage_mask?: string;
|
|
140
|
+
union_info?: string;
|
|
141
|
+
quality?: string;
|
|
142
|
+
drm_kek?: string;
|
|
143
|
+
js_player?: string;
|
|
144
|
+
}
|
|
119
145
|
/** Lite-only preloading scene values supported by the player runtime. */
|
|
120
146
|
export type LitePreloadScene = 0 | 1;
|
|
121
147
|
/** Lite-safe preload strategy configuration. */
|
|
@@ -191,6 +217,7 @@ export interface LitePreloadDramaStream {
|
|
|
191
217
|
albumId: string;
|
|
192
218
|
episodeId: string;
|
|
193
219
|
defaultDefinition?: string;
|
|
220
|
+
transcodeParam?: LiteTranscodeParam;
|
|
194
221
|
getVideoByToken?: LitePlayAuthTokenConfig;
|
|
195
222
|
}
|
|
196
223
|
/** A token-resolved VOD item accepted by Lite preload APIs. */
|
|
@@ -207,6 +234,7 @@ export interface LiteDramaInfoRequest {
|
|
|
207
234
|
albumId: string;
|
|
208
235
|
episodeId: string;
|
|
209
236
|
vid: string;
|
|
237
|
+
transcodeParam?: LiteDramaInfoTranscodeParam;
|
|
210
238
|
}
|
|
211
239
|
/** Error returned by the host short-drama bridge. */
|
|
212
240
|
export interface LiteDramaInfoError {
|
|
@@ -278,6 +306,7 @@ export interface LiteTTDramaEnv {
|
|
|
278
306
|
appVersion: string;
|
|
279
307
|
clientKey: string;
|
|
280
308
|
canIUseGetDramaInfo: boolean;
|
|
309
|
+
canIUseGetDramaInfoTranscodeParam?: boolean;
|
|
281
310
|
canAndroidBatchGetDramaInfo?: boolean;
|
|
282
311
|
getDramaInfo: (callback: (res: LiteDramaInfoResponse) => void, options: LiteDramaInfoRequest) => void;
|
|
283
312
|
videoSecurityModule?: unknown;
|
|
@@ -426,6 +455,7 @@ export interface LitePlayerConfig<MediaUrl extends LiteMediaUrl = LiteMediaUrl,
|
|
|
426
455
|
vid?: string;
|
|
427
456
|
albumId?: string;
|
|
428
457
|
episodeId?: string;
|
|
458
|
+
transcodeParam?: LiteTranscodeParam;
|
|
429
459
|
onGetMediaInfo?: (...args: unknown[]) => void;
|
|
430
460
|
onGetDramaInfoPerf?: (...args: unknown[]) => void;
|
|
431
461
|
autoSubtitle?: boolean;
|