@volcengine/veplayer 1.19.1-rc.0 → 1.20.0-rc.0

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
@@ -3385,19 +3385,6 @@ export interface ITTDramaEnv {
3385
3385
  * @type {function}
3386
3386
  */
3387
3387
  sendLog: (EventName: string, params: Record<string, any>) => void;
3388
- /** {zh}
3389
- * @hidden
3390
- * @brief 当前在播短剧身份变化通知,由宿主集成层消费。
3391
- */
3392
- /** {en}
3393
- * @hidden
3394
- * @brief Notifies the host integration when the current drama playback identity changes.
3395
- */
3396
- onCurrentDramaPlaybackContextChange?: (context: {
3397
- albumId: string | null;
3398
- episodeId: string | null;
3399
- vid: string | null;
3400
- } | null) => boolean | void;
3401
3388
  /**
3402
3389
  * 低版本 app 下验证 TTOP 签发的 playAuthToken 时使用的密钥
3403
3390
  * 通过 JSB(如 minis.getSecret)从 Native 获取,用于 HMAC-SHA256 签名校验
@@ -3446,18 +3433,31 @@ export interface IGetDramaInfoPerfInfo {
3446
3433
  * JSB 获取短剧信息返回结果
3447
3434
  */
3448
3435
  export interface IJSBCallbackResult {
3436
+ /** {zh} @brief 顶层 Native 通参;旧客户端可缺失。 */
3437
+ /** {en} @brief Top-level Native tracking fields; absent on older clients. */
3438
+ tracking_context?: {
3439
+ enter_from?: string;
3440
+ minis_type?: string;
3441
+ minis_id?: string;
3442
+ ttoclid?: string;
3443
+ };
3449
3444
  is_success: number | boolean;
3450
3445
  error?: MinisError;
3451
3446
  data?: {
3452
3447
  status: number;
3453
3448
  drama_info: {
3454
3449
  album_id: string;
3455
- drama_name: string;
3456
- drama_cover: string;
3457
- drama_description: string;
3450
+ album_name?: string;
3451
+ episode_total_num?: number;
3452
+ drama_name?: string;
3453
+ album_cover?: string;
3454
+ drama_cover?: string;
3455
+ album_description?: string;
3456
+ drama_description?: string;
3458
3457
  };
3459
3458
  episode_info: {
3460
3459
  episode_id: string;
3460
+ episode_current_num?: number;
3461
3461
  episode_name: string;
3462
3462
  episode_cover: string;
3463
3463
  episode_description: string;
@@ -7102,6 +7102,7 @@ export declare const enum LangTextKey {
7102
7102
  NETWORK_URL_EXPIRE = "NETWORK_URL_EXPIRE",
7103
7103
  NETWORK_URL_SIGN = "NETWORK_URL_SIGN",
7104
7104
  NETWORK_ENCRYPT_HLS_ERR = "NETWORK_ENCRYPT_HLS_ERR",
7105
+ DECODER_INIT_NOT_SUPPORTED = "DECODER_INIT_NOT_SUPPORTED",
7105
7106
  MEDIA_ERR = "MEDIA_ERR",
7106
7107
  MEDIA_ERR_ABORTED = "MEDIA_ERR_ABORTED",
7107
7108
  MEDIA_ERR_NETWORK = "MEDIA_ERR_NETWORK",
@@ -7227,6 +7228,7 @@ declare class AuthToken extends SdkPlugin {
7227
7228
  getVideoInfo(sourceConfigs?: IPlayerConfig): Promise<{
7228
7229
  vid: string;
7229
7230
  __mediaInfoCacheHit: boolean;
7231
+ __dramaTrackingContext: Record<string, unknown>;
7230
7232
  playList: Stream[];
7231
7233
  codec: ICodecType;
7232
7234
  defaultDefinition: string;
@@ -8396,7 +8398,6 @@ declare function getMediaInfoCacheConfig(): NormalizedMediaInfoCacheConfig;
8396
8398
  export interface DramaIdentity {
8397
8399
  albumId: string | null;
8398
8400
  episodeId: string | null;
8399
- vid: string | null;
8400
8401
  }
8401
8402
  export declare type PlayerPlaybackState = "creating" | "ready" | "playing" | "paused" | "buffering" | "ended" | "error" | "destroyed";
8402
8403
  export interface PlayerPlaybackStateSnapshot extends DramaIdentity {