@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/index.d.ts CHANGED
@@ -3194,6 +3194,19 @@ export interface ITTDramaEnv {
3194
3194
  * @type {function}
3195
3195
  */
3196
3196
  sendLog: (EventName: string, params: Record<string, any>) => void;
3197
+ /** {zh}
3198
+ * @hidden
3199
+ * @brief 当前在播短剧身份变化通知,由宿主集成层消费。
3200
+ */
3201
+ /** {en}
3202
+ * @hidden
3203
+ * @brief Notifies the host integration when the current drama playback identity changes.
3204
+ */
3205
+ onCurrentDramaPlaybackContextChange?: (context: {
3206
+ albumId: string | null;
3207
+ episodeId: string | null;
3208
+ vid: string | null;
3209
+ } | null) => boolean | void;
3197
3210
  /**
3198
3211
  * 低版本 app 下验证 TTOP 签发的 playAuthToken 时使用的密钥
3199
3212
  * 通过 JSB(如 minis.getSecret)从 Native 获取,用于 HMAC-SHA256 签名校验
@@ -7592,6 +7605,7 @@ declare function getMediaInfoCacheConfig(): NormalizedMediaInfoCacheConfig;
7592
7605
  export interface DramaIdentity {
7593
7606
  albumId: string | null;
7594
7607
  episodeId: string | null;
7608
+ vid: string | null;
7595
7609
  }
7596
7610
  export declare type PlayerPlaybackState = "creating" | "ready" | "playing" | "paused" | "buffering" | "ended" | "error" | "destroyed";
7597
7611
  export interface PlayerPlaybackStateSnapshot extends DramaIdentity {