@volcengine/veplayer 1.20.0-rc.4 → 1.20.0-rc.5
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/README.md +1 -1
- package/index.d.ts +87 -12
- package/index.min.js +2 -2
- package/lite.cjs +2 -2
- package/lite.d.ts +35 -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 +1 -1
package/lite.d.ts
CHANGED
|
@@ -1114,6 +1114,7 @@ export interface LitePlayerPlaybackStateSnapshot {
|
|
|
1114
1114
|
isBeforePlayerCreate: boolean;
|
|
1115
1115
|
albumId: string | null;
|
|
1116
1116
|
episodeId: string | null;
|
|
1117
|
+
vid: string | null;
|
|
1117
1118
|
playbackSessionId: string;
|
|
1118
1119
|
duration: number;
|
|
1119
1120
|
currentTime: number;
|
|
@@ -1222,18 +1223,35 @@ export interface LiteDramaVideoInfo {
|
|
|
1222
1223
|
}
|
|
1223
1224
|
/** Short-drama bridge result with only Lite-safe media data. */
|
|
1224
1225
|
export interface LiteDramaInfoResponse {
|
|
1226
|
+
/** {zh} @brief 旧回包的顶层 Native 通参;优先使用 data.tracking_context。 */
|
|
1227
|
+
/** {en} @brief Legacy top-level tracking fields; data.tracking_context takes priority. */
|
|
1228
|
+
tracking_context?: {
|
|
1229
|
+
enter_from?: string;
|
|
1230
|
+
minis_type?: string;
|
|
1231
|
+
minis_id?: string;
|
|
1232
|
+
ttoclid?: string;
|
|
1233
|
+
};
|
|
1225
1234
|
is_success: number | boolean;
|
|
1226
1235
|
error?: LiteDramaInfoError;
|
|
1227
1236
|
data?: {
|
|
1237
|
+
/** {zh} @brief Native 埋点通参;缺失时不报对应字段。 */
|
|
1238
|
+
/** {en} @brief Native tracking fields; omitted fields are not reported. */
|
|
1239
|
+
tracking_context?: LiteDramaInfoResponse["tracking_context"];
|
|
1228
1240
|
status: number;
|
|
1229
1241
|
drama_info: {
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1242
|
+
drama_id?: string;
|
|
1243
|
+
album_id?: string;
|
|
1244
|
+
album_name?: string;
|
|
1245
|
+
episode_total_num?: number;
|
|
1246
|
+
drama_name?: string;
|
|
1247
|
+
album_cover?: string;
|
|
1248
|
+
drama_cover?: string;
|
|
1249
|
+
album_description?: string;
|
|
1250
|
+
drama_description?: string;
|
|
1234
1251
|
};
|
|
1235
1252
|
episode_info: {
|
|
1236
1253
|
episode_id: string;
|
|
1254
|
+
episode_current_num?: number;
|
|
1237
1255
|
episode_name: string;
|
|
1238
1256
|
episode_cover: string;
|
|
1239
1257
|
episode_description: string;
|
|
@@ -1258,6 +1276,19 @@ export interface LiteTTDramaEnv {
|
|
|
1258
1276
|
getDramaInfo: (callback: (res: LiteDramaInfoResponse) => void, options: LiteDramaInfoRequest) => void;
|
|
1259
1277
|
videoSecurityModule?: unknown;
|
|
1260
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;
|
|
1261
1292
|
getTokenVerifySecret?: () => Promise<string>;
|
|
1262
1293
|
}
|
|
1263
1294
|
export interface LiteDefaultConfig {
|