@byteplus/veplayer 1.19.0-rc.4 → 1.19.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
@@ -204,6 +204,7 @@ export interface LitePlayerPlaybackStateSnapshot {
204
204
  isBeforePlayerCreate: boolean;
205
205
  albumId: string | null;
206
206
  episodeId: string | null;
207
+ vid: string | null;
207
208
  playbackSessionId: string;
208
209
  duration: number;
209
210
  currentTime: number;
@@ -334,6 +335,19 @@ export interface LiteTTDramaEnv {
334
335
  getDramaInfo: (callback: (res: LiteDramaInfoResponse) => void, options: LiteDramaInfoRequest) => void;
335
336
  videoSecurityModule?: unknown;
336
337
  sendLog: (eventName: string, params: Record<string, unknown>) => void;
338
+ /** {zh}
339
+ * @hidden
340
+ * @brief 当前在播短剧身份变化通知,由宿主集成层消费。
341
+ */
342
+ /** {en}
343
+ * @hidden
344
+ * @brief Notifies the host integration when the current drama playback identity changes.
345
+ */
346
+ onCurrentDramaPlaybackContextChange?: (context: {
347
+ albumId: string | null;
348
+ episodeId: string | null;
349
+ vid: string | null;
350
+ } | null) => boolean | void;
337
351
  getTokenVerifySecret?: () => Promise<string>;
338
352
  }
339
353
  export interface LiteDefaultConfig {