@volcengine/veplayer 1.19.2-rc.0 → 1.19.2-rc.2

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
@@ -3350,6 +3350,15 @@ export interface IGetPlayInfoRes {
3350
3350
  * 短剧环境配置接口
3351
3351
  */
3352
3352
  export interface ITTDramaEnv {
3353
+ /** {zh}
3354
+ * @brief 首次 TTMinis.init 调用的 Unix 毫秒时间,用于计算首个视频的起播耗时。
3355
+ * @hidden
3356
+ */
3357
+ /** {en}
3358
+ * @brief Unix timestamp in milliseconds of the first TTMinis.init call, used for first-video startup duration.
3359
+ * @hidden
3360
+ */
3361
+ pageLoadStartTime?: number;
3353
3362
  /** 云服务商,默认从构建时 env.__PLATFORM__ 获取,未注入时默认为 byteplus */
3354
3363
  channel?: "volcengine" | "byteplus";
3355
3364
  /**
@@ -3446,8 +3455,8 @@ export interface IGetDramaInfoPerfInfo {
3446
3455
  * JSB 获取短剧信息返回结果
3447
3456
  */
3448
3457
  export interface IJSBCallbackResult {
3449
- /** {zh} @brief 顶层 Native 通参;旧客户端可缺失。 */
3450
- /** {en} @brief Top-level Native tracking fields; absent on older clients. */
3458
+ /** {zh} @brief 旧回包的顶层 Native 通参;优先使用 data.tracking_context。 */
3459
+ /** {en} @brief Legacy top-level tracking fields; data.tracking_context takes priority. */
3451
3460
  tracking_context?: {
3452
3461
  enter_from?: string;
3453
3462
  minis_type?: string;
@@ -3457,9 +3466,13 @@ export interface IJSBCallbackResult {
3457
3466
  is_success: number | boolean;
3458
3467
  error?: MinisError;
3459
3468
  data?: {
3469
+ /** {zh} @brief Native 埋点通参;缺失时不报对应字段。 */
3470
+ /** {en} @brief Native tracking fields; omitted fields are not reported. */
3471
+ tracking_context?: IJSBCallbackResult["tracking_context"];
3460
3472
  status: number;
3461
3473
  drama_info: {
3462
- album_id: string;
3474
+ drama_id?: string;
3475
+ album_id?: string;
3463
3476
  album_name?: string;
3464
3477
  episode_total_num?: number;
3465
3478
  drama_name?: string;
@@ -7241,6 +7254,7 @@ declare class AuthToken extends SdkPlugin {
7241
7254
  getVideoInfo(sourceConfigs?: IPlayerConfig): Promise<{
7242
7255
  vid: string;
7243
7256
  __mediaInfoCacheHit: boolean;
7257
+ __serverFetchDuration: number;
7244
7258
  __dramaTrackingContext: Record<string, unknown>;
7245
7259
  playList: Stream[];
7246
7260
  codec: ICodecType;