@byteplus/veplayer 1.21.1-rc.1 → 1.21.1-rc.3

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
@@ -3413,17 +3413,13 @@ export interface ITTDramaEnv {
3413
3413
  sendLog: (EventName: string, params: Record<string, any>) => void;
3414
3414
  /** {zh}
3415
3415
  * @hidden
3416
- * @brief 当前在播短剧身份变化通知,由宿主集成层消费。
3416
+ * @brief 通知宿主当前在播短剧及其播放参数的变化。
3417
3417
  */
3418
3418
  /** {en}
3419
3419
  * @hidden
3420
- * @brief Notifies the host integration when the current drama playback identity changes.
3420
+ * @brief Notifies the host when the current drama or its playback options change.
3421
3421
  */
3422
- onCurrentDramaPlaybackContextChange?: (context: {
3423
- albumId: string | null;
3424
- episodeId: string | null;
3425
- vid: string | null;
3426
- } | null) => boolean | void;
3422
+ onCurrentDramaPlaybackContextChange?: (context: DramaPlaybackContext | null) => boolean | void;
3427
3423
  /**
3428
3424
  * 低版本 app 下验证 TTOP 签发的 playAuthToken 时使用的密钥
3429
3425
  * 通过 JSB(如 minis.getSecret)从 Native 获取,用于 HMAC-SHA256 签名校验
@@ -3453,6 +3449,21 @@ export interface IGetDramaInfoTranscodeParam {
3453
3449
  drm_kek?: string;
3454
3450
  js_player?: string;
3455
3451
  }
3452
+ /** {zh}
3453
+ * @brief 当前在播短剧的标识和播放参数。
3454
+ * @hidden
3455
+ */
3456
+ /** {en}
3457
+ * @brief The identity and playback options of the current drama.
3458
+ * @hidden
3459
+ */
3460
+ export interface DramaPlaybackContext {
3461
+ albumId: string | null;
3462
+ episodeId: string | null;
3463
+ vid: string | null;
3464
+ transcodeParam?: IGetDramaInfoTranscodeParam;
3465
+ defaultDefinition?: string;
3466
+ }
3456
3467
  export interface MinisError {
3457
3468
  error_code: number;
3458
3469
  error_msg: string;
@@ -8774,11 +8785,7 @@ export declare type NormalizedMediaInfoCacheConfig = {
8774
8785
  maxEntries: number;
8775
8786
  };
8776
8787
  declare function getMediaInfoCacheConfig(): NormalizedMediaInfoCacheConfig;
8777
- export interface DramaIdentity {
8778
- albumId: string | null;
8779
- episodeId: string | null;
8780
- vid: string | null;
8781
- }
8788
+ export declare type DramaIdentity = Pick<DramaPlaybackContext, "albumId" | "episodeId" | "vid">;
8782
8789
  export declare type PlayerPlaybackState = "creating" | "ready" | "playing" | "paused" | "buffering" | "ended" | "error" | "destroyed";
8783
8790
  export interface PlayerPlaybackStateSnapshot extends DramaIdentity {
8784
8791
  playbackSessionId: string;