@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/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
- album_id: string;
1231
- drama_name: string;
1232
- drama_cover: string;
1233
- drama_description: string;
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 {