@volcengine/veplayer 2.12.1 → 2.12.2-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/veplayer.d.ts CHANGED
@@ -5424,6 +5424,7 @@ declare namespace error {
5424
5424
  declare namespace event {
5425
5425
  const BaseEvents: {
5426
5426
  SEI: string;
5427
+ SEI_IN_TIME: string;
5427
5428
  PLAYER_CREATE_FINISH: string;
5428
5429
  FALLBACK_ERROR: string;
5429
5430
  FALLBACK: string;
@@ -5468,6 +5469,7 @@ declare namespace event {
5468
5469
  };
5469
5470
  const Events: {
5470
5471
  SEI: string;
5472
+ SEI_IN_TIME: string;
5471
5473
  PLAYER_CREATE_FINISH: string;
5472
5474
  FALLBACK_ERROR: string;
5473
5475
  FALLBACK: string;
@@ -13643,6 +13645,13 @@ declare namespace live {
13643
13645
  * The player parses the SEI information.
13644
13646
  */
13645
13647
  SEI = "sei",
13648
+ /** {zh}
13649
+ * SEI 信息与播放进度对齐。SEI 在解析后会被缓存,待播放进度到达该 SEI 对应的时间点时抛出。
13650
+ */
13651
+ /** {en}
13652
+ * The SEI information is aligned with the playback progress. The player caches the parsed SEI and emits it when the playback progress reaches the timestamp of the SEI.
13653
+ */
13654
+ SEI_IN_TIME = "seiInTime",
13646
13655
  /** {zh}
13647
13656
  * 时移状态切换
13648
13657
  */
@@ -14314,6 +14323,67 @@ declare namespace live {
14314
14323
  uuid: string;
14315
14324
  };
14316
14325
  }) => void;
14326
+ /** {zh}
14327
+ * SEI 信息与播放进度对齐。
14328
+ * @param data SEI 信息,与 SEI 事件的回调数据结构一致
14329
+ */
14330
+ /** {en}
14331
+ * The SEI information is aligned with the playback progress.
14332
+ * @param data The SEI information. The data structure is the same as that of the SEI event.
14333
+ */
14334
+ [LiveEvents.SEI_IN_TIME]: (data: {
14335
+ /** {zh}
14336
+ * 原始 PTS。视频帧在实际推流中的显示时间戳 PTS。
14337
+ */
14338
+ /** {en}
14339
+ * The actual presentation timestamp (PTS) of the video frame.
14340
+ */
14341
+ originPts: number;
14342
+ /** {zh}
14343
+ * 修正后的 PTS。在直播场景中,播放器会根据观众进入直播间时间,从 0 开始重新定义显示时间戳 PTS。
14344
+ */
14345
+ /** {en}
14346
+ * The adjusted presentation timestamp (PTS). The player adjusts the presentation timestamp based on the time the audience enters the live room.
14347
+ */
14348
+ pts: number;
14349
+ /** {zh}
14350
+ * 该 SEI 消息在当前直播视频中的时间点,单位为 s。
14351
+ */
14352
+ /** {en}
14353
+ * The timestamp of the SEI message in the current live stream, in seconds.
14354
+ */
14355
+ time: number;
14356
+ data: {
14357
+ /** {zh}
14358
+ * SEI 数据。
14359
+ */
14360
+ /** {en}
14361
+ * The SEI data.
14362
+ */
14363
+ payload: Uint8Array;
14364
+ /** {zh}
14365
+ * SEI 类型。
14366
+ */
14367
+ /** {en}
14368
+ * The SEI type.
14369
+ */
14370
+ type: number;
14371
+ /** {zh}
14372
+ * SEI 大小。
14373
+ */
14374
+ /** {en}
14375
+ * The SEI size.
14376
+ */
14377
+ size: number;
14378
+ /** {zh}
14379
+ * SEI UUID,不存在则为空字符串。
14380
+ */
14381
+ /** {en}
14382
+ * The SEI UUID or an empty string if the SEI UUID doesn't exist.
14383
+ */
14384
+ uuid: string;
14385
+ };
14386
+ }) => void;
14317
14387
  /** {zh}
14318
14388
  * @brief 时移状态切换。
14319
14389
  * @param isTimeShift 是否是时移状态。
@@ -14555,6 +14625,7 @@ declare namespace live {
14555
14625
  HLS_PLAYOUT_LIMIT_REACHED: HLS.Events.PLAYOUT_LIMIT_REACHED;
14556
14626
  HLS_EVENT_CUE_ENTER: HLS.Events.EVENT_CUE_ENTER;
14557
14627
  SEI: string;
14628
+ SEI_IN_TIME: string;
14558
14629
  PLAYER_CREATE_FINISH: string;
14559
14630
  FALLBACK_ERROR: string;
14560
14631
  FALLBACK: string;
@@ -5424,6 +5424,7 @@ declare namespace error {
5424
5424
  declare namespace event {
5425
5425
  const BaseEvents: {
5426
5426
  SEI: string;
5427
+ SEI_IN_TIME: string;
5427
5428
  PLAYER_CREATE_FINISH: string;
5428
5429
  FALLBACK_ERROR: string;
5429
5430
  FALLBACK: string;
@@ -5468,6 +5469,7 @@ declare namespace event {
5468
5469
  };
5469
5470
  const Events: {
5470
5471
  SEI: string;
5472
+ SEI_IN_TIME: string;
5471
5473
  PLAYER_CREATE_FINISH: string;
5472
5474
  FALLBACK_ERROR: string;
5473
5475
  FALLBACK: string;
@@ -13643,6 +13645,13 @@ declare namespace live {
13643
13645
  * The player parses the SEI information.
13644
13646
  */
13645
13647
  SEI = "sei",
13648
+ /** {zh}
13649
+ * SEI 信息与播放进度对齐。SEI 在解析后会被缓存,待播放进度到达该 SEI 对应的时间点时抛出。
13650
+ */
13651
+ /** {en}
13652
+ * The SEI information is aligned with the playback progress. The player caches the parsed SEI and emits it when the playback progress reaches the timestamp of the SEI.
13653
+ */
13654
+ SEI_IN_TIME = "seiInTime",
13646
13655
  /** {zh}
13647
13656
  * 时移状态切换
13648
13657
  */
@@ -14314,6 +14323,67 @@ declare namespace live {
14314
14323
  uuid: string;
14315
14324
  };
14316
14325
  }) => void;
14326
+ /** {zh}
14327
+ * SEI 信息与播放进度对齐。
14328
+ * @param data SEI 信息,与 SEI 事件的回调数据结构一致
14329
+ */
14330
+ /** {en}
14331
+ * The SEI information is aligned with the playback progress.
14332
+ * @param data The SEI information. The data structure is the same as that of the SEI event.
14333
+ */
14334
+ [LiveEvents.SEI_IN_TIME]: (data: {
14335
+ /** {zh}
14336
+ * 原始 PTS。视频帧在实际推流中的显示时间戳 PTS。
14337
+ */
14338
+ /** {en}
14339
+ * The actual presentation timestamp (PTS) of the video frame.
14340
+ */
14341
+ originPts: number;
14342
+ /** {zh}
14343
+ * 修正后的 PTS。在直播场景中,播放器会根据观众进入直播间时间,从 0 开始重新定义显示时间戳 PTS。
14344
+ */
14345
+ /** {en}
14346
+ * The adjusted presentation timestamp (PTS). The player adjusts the presentation timestamp based on the time the audience enters the live room.
14347
+ */
14348
+ pts: number;
14349
+ /** {zh}
14350
+ * 该 SEI 消息在当前直播视频中的时间点,单位为 s。
14351
+ */
14352
+ /** {en}
14353
+ * The timestamp of the SEI message in the current live stream, in seconds.
14354
+ */
14355
+ time: number;
14356
+ data: {
14357
+ /** {zh}
14358
+ * SEI 数据。
14359
+ */
14360
+ /** {en}
14361
+ * The SEI data.
14362
+ */
14363
+ payload: Uint8Array;
14364
+ /** {zh}
14365
+ * SEI 类型。
14366
+ */
14367
+ /** {en}
14368
+ * The SEI type.
14369
+ */
14370
+ type: number;
14371
+ /** {zh}
14372
+ * SEI 大小。
14373
+ */
14374
+ /** {en}
14375
+ * The SEI size.
14376
+ */
14377
+ size: number;
14378
+ /** {zh}
14379
+ * SEI UUID,不存在则为空字符串。
14380
+ */
14381
+ /** {en}
14382
+ * The SEI UUID or an empty string if the SEI UUID doesn't exist.
14383
+ */
14384
+ uuid: string;
14385
+ };
14386
+ }) => void;
14317
14387
  /** {zh}
14318
14388
  * @brief 时移状态切换。
14319
14389
  * @param isTimeShift 是否是时移状态。
@@ -14555,6 +14625,7 @@ declare namespace live {
14555
14625
  HLS_PLAYOUT_LIMIT_REACHED: HLS.Events.PLAYOUT_LIMIT_REACHED;
14556
14626
  HLS_EVENT_CUE_ENTER: HLS.Events.EVENT_CUE_ENTER;
14557
14627
  SEI: string;
14628
+ SEI_IN_TIME: string;
14558
14629
  PLAYER_CREATE_FINISH: string;
14559
14630
  FALLBACK_ERROR: string;
14560
14631
  FALLBACK: string;
package/veplayer.vod.d.ts CHANGED
@@ -5080,6 +5080,7 @@ declare namespace error {
5080
5080
  declare namespace event {
5081
5081
  const BaseEvents: {
5082
5082
  SEI: string;
5083
+ SEI_IN_TIME: string;
5083
5084
  PLAYER_CREATE_FINISH: string;
5084
5085
  FALLBACK_ERROR: string;
5085
5086
  FALLBACK: string;
@@ -5124,6 +5125,7 @@ declare namespace event {
5124
5125
  };
5125
5126
  const Events: {
5126
5127
  SEI: string;
5128
+ SEI_IN_TIME: string;
5127
5129
  PLAYER_CREATE_FINISH: string;
5128
5130
  FALLBACK_ERROR: string;
5129
5131
  FALLBACK: string;