@byteplus/veplayer 2.12.2-rc.0 → 2.13.1-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/esm/index.d.ts +0 -2
- package/esm/veplayer.biz.live.development.js +154 -8
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +86 -75
- package/esm/veplayer.development.js +157 -15
- package/esm/veplayer.live.d.ts +86 -75
- package/esm/veplayer.live.development.js +157 -15
- package/esm/veplayer.live.production.js +3 -3
- package/esm/veplayer.production.js +3 -3
- package/esm/veplayer.vod.d.ts +0 -2
- package/esm/veplayer.vod.development.js +1 -7
- package/esm/veplayer.vod.production.js +2 -2
- package/package.json +1 -1
- package/umd/index.d.ts +0 -2
- package/umd/veplayer.biz.live.development.js +154 -8
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +86 -75
- package/umd/veplayer.development.js +157 -15
- package/umd/veplayer.live.d.ts +86 -75
- package/umd/veplayer.live.development.js +157 -15
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +0 -2
- package/umd/veplayer.vod.development.js +1 -7
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +86 -75
- package/veplayer.live.d.ts +86 -75
- package/veplayer.vod.d.ts +0 -2
package/veplayer.d.ts
CHANGED
|
@@ -5424,7 +5424,6 @@ declare namespace error {
|
|
|
5424
5424
|
declare namespace event {
|
|
5425
5425
|
const BaseEvents: {
|
|
5426
5426
|
SEI: string;
|
|
5427
|
-
SEI_IN_TIME: string;
|
|
5428
5427
|
PLAYER_CREATE_FINISH: string;
|
|
5429
5428
|
FALLBACK_ERROR: string;
|
|
5430
5429
|
FALLBACK: string;
|
|
@@ -5469,7 +5468,6 @@ declare namespace event {
|
|
|
5469
5468
|
};
|
|
5470
5469
|
const Events: {
|
|
5471
5470
|
SEI: string;
|
|
5472
|
-
SEI_IN_TIME: string;
|
|
5473
5471
|
PLAYER_CREATE_FINISH: string;
|
|
5474
5472
|
FALLBACK_ERROR: string;
|
|
5475
5473
|
FALLBACK: string;
|
|
@@ -6219,6 +6217,7 @@ interface PrepareOptions {
|
|
|
6219
6217
|
logger?: LoggerConfig;
|
|
6220
6218
|
}
|
|
6221
6219
|
interface LiveEN {
|
|
6220
|
+
INVALID_PARAMETER: string;
|
|
6222
6221
|
ERROR_TYPES?: any;
|
|
6223
6222
|
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
6224
6223
|
[key: string]: string | unknown;
|
|
@@ -7060,9 +7059,11 @@ interface Rtm {
|
|
|
7060
7059
|
checkStatsErrorDelay?: number;
|
|
7061
7060
|
/** {zh}
|
|
7062
7061
|
* @brief 是否打开 RTM SEI
|
|
7062
|
+
* @default true
|
|
7063
7063
|
*/
|
|
7064
7064
|
/** {en}
|
|
7065
7065
|
* @brief enable RTM SEI data.
|
|
7066
|
+
* @default true
|
|
7066
7067
|
*/
|
|
7067
7068
|
enableSei?: boolean;
|
|
7068
7069
|
}
|
|
@@ -7307,6 +7308,32 @@ interface RTMNetWorkInfo {
|
|
|
7307
7308
|
*/
|
|
7308
7309
|
avgLostRate?: number;
|
|
7309
7310
|
}
|
|
7311
|
+
/** {zh}
|
|
7312
|
+
* @list option
|
|
7313
|
+
* @kind property
|
|
7314
|
+
* @brief 服务端 SEI 延迟统计。
|
|
7315
|
+
*/
|
|
7316
|
+
/** {en}
|
|
7317
|
+
* @list option
|
|
7318
|
+
* @kind property
|
|
7319
|
+
* @brief Server SEI delay statistics.
|
|
7320
|
+
*/
|
|
7321
|
+
interface SEIDelayStats {
|
|
7322
|
+
/** {zh}
|
|
7323
|
+
* @brief 服务端链路延迟,单位为毫秒。没有有效的服务端 SEI 数据时为空。
|
|
7324
|
+
*/
|
|
7325
|
+
/** {en}
|
|
7326
|
+
* @brief Server-side transfer delay in milliseconds. Empty when valid server SEI data is unavailable.
|
|
7327
|
+
*/
|
|
7328
|
+
delay_s2s?: number;
|
|
7329
|
+
/** {zh}
|
|
7330
|
+
* @brief 推流端到播放端的延迟,单位为毫秒。没有有效的服务端 SEI 数据时为空。
|
|
7331
|
+
*/
|
|
7332
|
+
/** {en}
|
|
7333
|
+
* @brief Stream-to-end playback delay in milliseconds. Empty when valid server SEI data is unavailable.
|
|
7334
|
+
*/
|
|
7335
|
+
delay_s2e?: number;
|
|
7336
|
+
}
|
|
7310
7337
|
/** {zh}
|
|
7311
7338
|
* @list option
|
|
7312
7339
|
* @kind property
|
|
@@ -7317,7 +7344,7 @@ interface RTMNetWorkInfo {
|
|
|
7317
7344
|
* @kind property
|
|
7318
7345
|
* @brief RTM live stream information.
|
|
7319
7346
|
*/
|
|
7320
|
-
interface StatsSnapShoot {
|
|
7347
|
+
interface StatsSnapShoot extends SEIDelayStats {
|
|
7321
7348
|
/** {en}
|
|
7322
7349
|
* @brief Video information.
|
|
7323
7350
|
*/
|
|
@@ -7548,7 +7575,7 @@ interface StatsSnapShoot {
|
|
|
7548
7575
|
* @kind property
|
|
7549
7576
|
* @brief Basic information for live stream playback.
|
|
7550
7577
|
*/
|
|
7551
|
-
interface Stats$0 {
|
|
7578
|
+
interface Stats$0 extends SEIDelayStats {
|
|
7552
7579
|
/** {zh}
|
|
7553
7580
|
* @brief 音频格式。
|
|
7554
7581
|
* @hidden
|
|
@@ -7706,6 +7733,7 @@ declare class VePlayerLive extends VePlayerBase {
|
|
|
7706
7733
|
* @hidden
|
|
7707
7734
|
*/
|
|
7708
7735
|
_protocolManager?: ProtocolManager;
|
|
7736
|
+
private _seiDelayStats;
|
|
7709
7737
|
/** {zh}
|
|
7710
7738
|
* @hidden
|
|
7711
7739
|
* @param options
|
|
@@ -7736,6 +7764,13 @@ declare class VePlayerLive extends VePlayerBase {
|
|
|
7736
7764
|
* @hidden
|
|
7737
7765
|
*/
|
|
7738
7766
|
get hls(): any;
|
|
7767
|
+
/** {zh}
|
|
7768
|
+
* @hidden
|
|
7769
|
+
*/
|
|
7770
|
+
/** {en}
|
|
7771
|
+
* @hidden
|
|
7772
|
+
*/
|
|
7773
|
+
destroy(): void;
|
|
7739
7774
|
/** {zh}
|
|
7740
7775
|
* @brief 调用此方法开启直播日志上报。
|
|
7741
7776
|
*/
|
|
@@ -7888,6 +7923,10 @@ declare class VePlayerLive extends VePlayerBase {
|
|
|
7888
7923
|
*/
|
|
7889
7924
|
source?: string;
|
|
7890
7925
|
}, needUpdateProtocol?: boolean): Promise<void>;
|
|
7926
|
+
private _resetSEIDelayStats;
|
|
7927
|
+
private _handleSEI;
|
|
7928
|
+
private _getPlayerBufferTime;
|
|
7929
|
+
private _mergeSEIDelayStats;
|
|
7891
7930
|
}
|
|
7892
7931
|
/** {zh}
|
|
7893
7932
|
* @detail api
|
|
@@ -11541,6 +11580,7 @@ declare namespace live {
|
|
|
11541
11580
|
logger?: LoggerConfig;
|
|
11542
11581
|
}
|
|
11543
11582
|
interface LiveEN {
|
|
11583
|
+
INVALID_PARAMETER: string;
|
|
11544
11584
|
ERROR_TYPES?: any;
|
|
11545
11585
|
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
11546
11586
|
[key: string]: string | unknown;
|
|
@@ -12392,9 +12432,11 @@ declare namespace live {
|
|
|
12392
12432
|
checkStatsErrorDelay?: number;
|
|
12393
12433
|
/** {zh}
|
|
12394
12434
|
* @brief 是否打开 RTM SEI
|
|
12435
|
+
* @default true
|
|
12395
12436
|
*/
|
|
12396
12437
|
/** {en}
|
|
12397
12438
|
* @brief enable RTM SEI data.
|
|
12439
|
+
* @default true
|
|
12398
12440
|
*/
|
|
12399
12441
|
enableSei?: boolean;
|
|
12400
12442
|
}
|
|
@@ -12639,6 +12681,32 @@ declare namespace live {
|
|
|
12639
12681
|
*/
|
|
12640
12682
|
avgLostRate?: number;
|
|
12641
12683
|
}
|
|
12684
|
+
/** {zh}
|
|
12685
|
+
* @list option
|
|
12686
|
+
* @kind property
|
|
12687
|
+
* @brief 服务端 SEI 延迟统计。
|
|
12688
|
+
*/
|
|
12689
|
+
/** {en}
|
|
12690
|
+
* @list option
|
|
12691
|
+
* @kind property
|
|
12692
|
+
* @brief Server SEI delay statistics.
|
|
12693
|
+
*/
|
|
12694
|
+
interface SEIDelayStats {
|
|
12695
|
+
/** {zh}
|
|
12696
|
+
* @brief 服务端链路延迟,单位为毫秒。没有有效的服务端 SEI 数据时为空。
|
|
12697
|
+
*/
|
|
12698
|
+
/** {en}
|
|
12699
|
+
* @brief Server-side transfer delay in milliseconds. Empty when valid server SEI data is unavailable.
|
|
12700
|
+
*/
|
|
12701
|
+
delay_s2s?: number;
|
|
12702
|
+
/** {zh}
|
|
12703
|
+
* @brief 推流端到播放端的延迟,单位为毫秒。没有有效的服务端 SEI 数据时为空。
|
|
12704
|
+
*/
|
|
12705
|
+
/** {en}
|
|
12706
|
+
* @brief Stream-to-end playback delay in milliseconds. Empty when valid server SEI data is unavailable.
|
|
12707
|
+
*/
|
|
12708
|
+
delay_s2e?: number;
|
|
12709
|
+
}
|
|
12642
12710
|
/** {zh}
|
|
12643
12711
|
* @list option
|
|
12644
12712
|
* @kind property
|
|
@@ -12649,7 +12717,7 @@ declare namespace live {
|
|
|
12649
12717
|
* @kind property
|
|
12650
12718
|
* @brief RTM live stream information.
|
|
12651
12719
|
*/
|
|
12652
|
-
interface StatsSnapShoot {
|
|
12720
|
+
interface StatsSnapShoot extends SEIDelayStats {
|
|
12653
12721
|
/** {en}
|
|
12654
12722
|
* @brief Video information.
|
|
12655
12723
|
*/
|
|
@@ -12880,7 +12948,7 @@ declare namespace live {
|
|
|
12880
12948
|
* @kind property
|
|
12881
12949
|
* @brief Basic information for live stream playback.
|
|
12882
12950
|
*/
|
|
12883
|
-
interface Stats$0 {
|
|
12951
|
+
interface Stats$0 extends SEIDelayStats {
|
|
12884
12952
|
/** {zh}
|
|
12885
12953
|
* @brief 音频格式。
|
|
12886
12954
|
* @hidden
|
|
@@ -13038,6 +13106,7 @@ declare namespace live {
|
|
|
13038
13106
|
* @hidden
|
|
13039
13107
|
*/
|
|
13040
13108
|
_protocolManager?: ProtocolManager;
|
|
13109
|
+
private _seiDelayStats;
|
|
13041
13110
|
/** {zh}
|
|
13042
13111
|
* @hidden
|
|
13043
13112
|
* @param options
|
|
@@ -13068,6 +13137,13 @@ declare namespace live {
|
|
|
13068
13137
|
* @hidden
|
|
13069
13138
|
*/
|
|
13070
13139
|
get hls(): any;
|
|
13140
|
+
/** {zh}
|
|
13141
|
+
* @hidden
|
|
13142
|
+
*/
|
|
13143
|
+
/** {en}
|
|
13144
|
+
* @hidden
|
|
13145
|
+
*/
|
|
13146
|
+
destroy(): void;
|
|
13071
13147
|
/** {zh}
|
|
13072
13148
|
* @brief 调用此方法开启直播日志上报。
|
|
13073
13149
|
*/
|
|
@@ -13220,6 +13296,10 @@ declare namespace live {
|
|
|
13220
13296
|
*/
|
|
13221
13297
|
source?: string;
|
|
13222
13298
|
}, needUpdateProtocol?: boolean): Promise<void>;
|
|
13299
|
+
private _resetSEIDelayStats;
|
|
13300
|
+
private _handleSEI;
|
|
13301
|
+
private _getPlayerBufferTime;
|
|
13302
|
+
private _mergeSEIDelayStats;
|
|
13223
13303
|
}
|
|
13224
13304
|
/** {zh}
|
|
13225
13305
|
* @detail api
|
|
@@ -13645,13 +13725,6 @@ declare namespace live {
|
|
|
13645
13725
|
* The player parses the SEI information.
|
|
13646
13726
|
*/
|
|
13647
13727
|
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",
|
|
13655
13728
|
/** {zh}
|
|
13656
13729
|
* 时移状态切换
|
|
13657
13730
|
*/
|
|
@@ -14323,67 +14396,6 @@ declare namespace live {
|
|
|
14323
14396
|
uuid: string;
|
|
14324
14397
|
};
|
|
14325
14398
|
}) => 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;
|
|
14387
14399
|
/** {zh}
|
|
14388
14400
|
* @brief 时移状态切换。
|
|
14389
14401
|
* @param isTimeShift 是否是时移状态。
|
|
@@ -14625,7 +14637,6 @@ declare namespace live {
|
|
|
14625
14637
|
HLS_PLAYOUT_LIMIT_REACHED: HLS.Events.PLAYOUT_LIMIT_REACHED;
|
|
14626
14638
|
HLS_EVENT_CUE_ENTER: HLS.Events.EVENT_CUE_ENTER;
|
|
14627
14639
|
SEI: string;
|
|
14628
|
-
SEI_IN_TIME: string;
|
|
14629
14640
|
PLAYER_CREATE_FINISH: string;
|
|
14630
14641
|
FALLBACK_ERROR: string;
|
|
14631
14642
|
FALLBACK: string;
|
package/veplayer.live.d.ts
CHANGED
|
@@ -5424,7 +5424,6 @@ declare namespace error {
|
|
|
5424
5424
|
declare namespace event {
|
|
5425
5425
|
const BaseEvents: {
|
|
5426
5426
|
SEI: string;
|
|
5427
|
-
SEI_IN_TIME: string;
|
|
5428
5427
|
PLAYER_CREATE_FINISH: string;
|
|
5429
5428
|
FALLBACK_ERROR: string;
|
|
5430
5429
|
FALLBACK: string;
|
|
@@ -5469,7 +5468,6 @@ declare namespace event {
|
|
|
5469
5468
|
};
|
|
5470
5469
|
const Events: {
|
|
5471
5470
|
SEI: string;
|
|
5472
|
-
SEI_IN_TIME: string;
|
|
5473
5471
|
PLAYER_CREATE_FINISH: string;
|
|
5474
5472
|
FALLBACK_ERROR: string;
|
|
5475
5473
|
FALLBACK: string;
|
|
@@ -6219,6 +6217,7 @@ interface PrepareOptions {
|
|
|
6219
6217
|
logger?: LoggerConfig;
|
|
6220
6218
|
}
|
|
6221
6219
|
interface LiveEN {
|
|
6220
|
+
INVALID_PARAMETER: string;
|
|
6222
6221
|
ERROR_TYPES?: any;
|
|
6223
6222
|
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
6224
6223
|
[key: string]: string | unknown;
|
|
@@ -7060,9 +7059,11 @@ interface Rtm {
|
|
|
7060
7059
|
checkStatsErrorDelay?: number;
|
|
7061
7060
|
/** {zh}
|
|
7062
7061
|
* @brief 是否打开 RTM SEI
|
|
7062
|
+
* @default true
|
|
7063
7063
|
*/
|
|
7064
7064
|
/** {en}
|
|
7065
7065
|
* @brief enable RTM SEI data.
|
|
7066
|
+
* @default true
|
|
7066
7067
|
*/
|
|
7067
7068
|
enableSei?: boolean;
|
|
7068
7069
|
}
|
|
@@ -7307,6 +7308,32 @@ interface RTMNetWorkInfo {
|
|
|
7307
7308
|
*/
|
|
7308
7309
|
avgLostRate?: number;
|
|
7309
7310
|
}
|
|
7311
|
+
/** {zh}
|
|
7312
|
+
* @list option
|
|
7313
|
+
* @kind property
|
|
7314
|
+
* @brief 服务端 SEI 延迟统计。
|
|
7315
|
+
*/
|
|
7316
|
+
/** {en}
|
|
7317
|
+
* @list option
|
|
7318
|
+
* @kind property
|
|
7319
|
+
* @brief Server SEI delay statistics.
|
|
7320
|
+
*/
|
|
7321
|
+
interface SEIDelayStats {
|
|
7322
|
+
/** {zh}
|
|
7323
|
+
* @brief 服务端链路延迟,单位为毫秒。没有有效的服务端 SEI 数据时为空。
|
|
7324
|
+
*/
|
|
7325
|
+
/** {en}
|
|
7326
|
+
* @brief Server-side transfer delay in milliseconds. Empty when valid server SEI data is unavailable.
|
|
7327
|
+
*/
|
|
7328
|
+
delay_s2s?: number;
|
|
7329
|
+
/** {zh}
|
|
7330
|
+
* @brief 推流端到播放端的延迟,单位为毫秒。没有有效的服务端 SEI 数据时为空。
|
|
7331
|
+
*/
|
|
7332
|
+
/** {en}
|
|
7333
|
+
* @brief Stream-to-end playback delay in milliseconds. Empty when valid server SEI data is unavailable.
|
|
7334
|
+
*/
|
|
7335
|
+
delay_s2e?: number;
|
|
7336
|
+
}
|
|
7310
7337
|
/** {zh}
|
|
7311
7338
|
* @list option
|
|
7312
7339
|
* @kind property
|
|
@@ -7317,7 +7344,7 @@ interface RTMNetWorkInfo {
|
|
|
7317
7344
|
* @kind property
|
|
7318
7345
|
* @brief RTM live stream information.
|
|
7319
7346
|
*/
|
|
7320
|
-
interface StatsSnapShoot {
|
|
7347
|
+
interface StatsSnapShoot extends SEIDelayStats {
|
|
7321
7348
|
/** {en}
|
|
7322
7349
|
* @brief Video information.
|
|
7323
7350
|
*/
|
|
@@ -7548,7 +7575,7 @@ interface StatsSnapShoot {
|
|
|
7548
7575
|
* @kind property
|
|
7549
7576
|
* @brief Basic information for live stream playback.
|
|
7550
7577
|
*/
|
|
7551
|
-
interface Stats$0 {
|
|
7578
|
+
interface Stats$0 extends SEIDelayStats {
|
|
7552
7579
|
/** {zh}
|
|
7553
7580
|
* @brief 音频格式。
|
|
7554
7581
|
* @hidden
|
|
@@ -7706,6 +7733,7 @@ declare class VePlayerLive extends VePlayerBase {
|
|
|
7706
7733
|
* @hidden
|
|
7707
7734
|
*/
|
|
7708
7735
|
_protocolManager?: ProtocolManager;
|
|
7736
|
+
private _seiDelayStats;
|
|
7709
7737
|
/** {zh}
|
|
7710
7738
|
* @hidden
|
|
7711
7739
|
* @param options
|
|
@@ -7736,6 +7764,13 @@ declare class VePlayerLive extends VePlayerBase {
|
|
|
7736
7764
|
* @hidden
|
|
7737
7765
|
*/
|
|
7738
7766
|
get hls(): any;
|
|
7767
|
+
/** {zh}
|
|
7768
|
+
* @hidden
|
|
7769
|
+
*/
|
|
7770
|
+
/** {en}
|
|
7771
|
+
* @hidden
|
|
7772
|
+
*/
|
|
7773
|
+
destroy(): void;
|
|
7739
7774
|
/** {zh}
|
|
7740
7775
|
* @brief 调用此方法开启直播日志上报。
|
|
7741
7776
|
*/
|
|
@@ -7888,6 +7923,10 @@ declare class VePlayerLive extends VePlayerBase {
|
|
|
7888
7923
|
*/
|
|
7889
7924
|
source?: string;
|
|
7890
7925
|
}, needUpdateProtocol?: boolean): Promise<void>;
|
|
7926
|
+
private _resetSEIDelayStats;
|
|
7927
|
+
private _handleSEI;
|
|
7928
|
+
private _getPlayerBufferTime;
|
|
7929
|
+
private _mergeSEIDelayStats;
|
|
7891
7930
|
}
|
|
7892
7931
|
/** {zh}
|
|
7893
7932
|
* @detail api
|
|
@@ -11541,6 +11580,7 @@ declare namespace live {
|
|
|
11541
11580
|
logger?: LoggerConfig;
|
|
11542
11581
|
}
|
|
11543
11582
|
interface LiveEN {
|
|
11583
|
+
INVALID_PARAMETER: string;
|
|
11544
11584
|
ERROR_TYPES?: any;
|
|
11545
11585
|
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
11546
11586
|
[key: string]: string | unknown;
|
|
@@ -12392,9 +12432,11 @@ declare namespace live {
|
|
|
12392
12432
|
checkStatsErrorDelay?: number;
|
|
12393
12433
|
/** {zh}
|
|
12394
12434
|
* @brief 是否打开 RTM SEI
|
|
12435
|
+
* @default true
|
|
12395
12436
|
*/
|
|
12396
12437
|
/** {en}
|
|
12397
12438
|
* @brief enable RTM SEI data.
|
|
12439
|
+
* @default true
|
|
12398
12440
|
*/
|
|
12399
12441
|
enableSei?: boolean;
|
|
12400
12442
|
}
|
|
@@ -12639,6 +12681,32 @@ declare namespace live {
|
|
|
12639
12681
|
*/
|
|
12640
12682
|
avgLostRate?: number;
|
|
12641
12683
|
}
|
|
12684
|
+
/** {zh}
|
|
12685
|
+
* @list option
|
|
12686
|
+
* @kind property
|
|
12687
|
+
* @brief 服务端 SEI 延迟统计。
|
|
12688
|
+
*/
|
|
12689
|
+
/** {en}
|
|
12690
|
+
* @list option
|
|
12691
|
+
* @kind property
|
|
12692
|
+
* @brief Server SEI delay statistics.
|
|
12693
|
+
*/
|
|
12694
|
+
interface SEIDelayStats {
|
|
12695
|
+
/** {zh}
|
|
12696
|
+
* @brief 服务端链路延迟,单位为毫秒。没有有效的服务端 SEI 数据时为空。
|
|
12697
|
+
*/
|
|
12698
|
+
/** {en}
|
|
12699
|
+
* @brief Server-side transfer delay in milliseconds. Empty when valid server SEI data is unavailable.
|
|
12700
|
+
*/
|
|
12701
|
+
delay_s2s?: number;
|
|
12702
|
+
/** {zh}
|
|
12703
|
+
* @brief 推流端到播放端的延迟,单位为毫秒。没有有效的服务端 SEI 数据时为空。
|
|
12704
|
+
*/
|
|
12705
|
+
/** {en}
|
|
12706
|
+
* @brief Stream-to-end playback delay in milliseconds. Empty when valid server SEI data is unavailable.
|
|
12707
|
+
*/
|
|
12708
|
+
delay_s2e?: number;
|
|
12709
|
+
}
|
|
12642
12710
|
/** {zh}
|
|
12643
12711
|
* @list option
|
|
12644
12712
|
* @kind property
|
|
@@ -12649,7 +12717,7 @@ declare namespace live {
|
|
|
12649
12717
|
* @kind property
|
|
12650
12718
|
* @brief RTM live stream information.
|
|
12651
12719
|
*/
|
|
12652
|
-
interface StatsSnapShoot {
|
|
12720
|
+
interface StatsSnapShoot extends SEIDelayStats {
|
|
12653
12721
|
/** {en}
|
|
12654
12722
|
* @brief Video information.
|
|
12655
12723
|
*/
|
|
@@ -12880,7 +12948,7 @@ declare namespace live {
|
|
|
12880
12948
|
* @kind property
|
|
12881
12949
|
* @brief Basic information for live stream playback.
|
|
12882
12950
|
*/
|
|
12883
|
-
interface Stats$0 {
|
|
12951
|
+
interface Stats$0 extends SEIDelayStats {
|
|
12884
12952
|
/** {zh}
|
|
12885
12953
|
* @brief 音频格式。
|
|
12886
12954
|
* @hidden
|
|
@@ -13038,6 +13106,7 @@ declare namespace live {
|
|
|
13038
13106
|
* @hidden
|
|
13039
13107
|
*/
|
|
13040
13108
|
_protocolManager?: ProtocolManager;
|
|
13109
|
+
private _seiDelayStats;
|
|
13041
13110
|
/** {zh}
|
|
13042
13111
|
* @hidden
|
|
13043
13112
|
* @param options
|
|
@@ -13068,6 +13137,13 @@ declare namespace live {
|
|
|
13068
13137
|
* @hidden
|
|
13069
13138
|
*/
|
|
13070
13139
|
get hls(): any;
|
|
13140
|
+
/** {zh}
|
|
13141
|
+
* @hidden
|
|
13142
|
+
*/
|
|
13143
|
+
/** {en}
|
|
13144
|
+
* @hidden
|
|
13145
|
+
*/
|
|
13146
|
+
destroy(): void;
|
|
13071
13147
|
/** {zh}
|
|
13072
13148
|
* @brief 调用此方法开启直播日志上报。
|
|
13073
13149
|
*/
|
|
@@ -13220,6 +13296,10 @@ declare namespace live {
|
|
|
13220
13296
|
*/
|
|
13221
13297
|
source?: string;
|
|
13222
13298
|
}, needUpdateProtocol?: boolean): Promise<void>;
|
|
13299
|
+
private _resetSEIDelayStats;
|
|
13300
|
+
private _handleSEI;
|
|
13301
|
+
private _getPlayerBufferTime;
|
|
13302
|
+
private _mergeSEIDelayStats;
|
|
13223
13303
|
}
|
|
13224
13304
|
/** {zh}
|
|
13225
13305
|
* @detail api
|
|
@@ -13645,13 +13725,6 @@ declare namespace live {
|
|
|
13645
13725
|
* The player parses the SEI information.
|
|
13646
13726
|
*/
|
|
13647
13727
|
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",
|
|
13655
13728
|
/** {zh}
|
|
13656
13729
|
* 时移状态切换
|
|
13657
13730
|
*/
|
|
@@ -14323,67 +14396,6 @@ declare namespace live {
|
|
|
14323
14396
|
uuid: string;
|
|
14324
14397
|
};
|
|
14325
14398
|
}) => 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;
|
|
14387
14399
|
/** {zh}
|
|
14388
14400
|
* @brief 时移状态切换。
|
|
14389
14401
|
* @param isTimeShift 是否是时移状态。
|
|
@@ -14625,7 +14637,6 @@ declare namespace live {
|
|
|
14625
14637
|
HLS_PLAYOUT_LIMIT_REACHED: HLS.Events.PLAYOUT_LIMIT_REACHED;
|
|
14626
14638
|
HLS_EVENT_CUE_ENTER: HLS.Events.EVENT_CUE_ENTER;
|
|
14627
14639
|
SEI: string;
|
|
14628
|
-
SEI_IN_TIME: string;
|
|
14629
14640
|
PLAYER_CREATE_FINISH: string;
|
|
14630
14641
|
FALLBACK_ERROR: string;
|
|
14631
14642
|
FALLBACK: string;
|
package/veplayer.vod.d.ts
CHANGED
|
@@ -5080,7 +5080,6 @@ declare namespace error {
|
|
|
5080
5080
|
declare namespace event {
|
|
5081
5081
|
const BaseEvents: {
|
|
5082
5082
|
SEI: string;
|
|
5083
|
-
SEI_IN_TIME: string;
|
|
5084
5083
|
PLAYER_CREATE_FINISH: string;
|
|
5085
5084
|
FALLBACK_ERROR: string;
|
|
5086
5085
|
FALLBACK: string;
|
|
@@ -5125,7 +5124,6 @@ declare namespace event {
|
|
|
5125
5124
|
};
|
|
5126
5125
|
const Events: {
|
|
5127
5126
|
SEI: string;
|
|
5128
|
-
SEI_IN_TIME: string;
|
|
5129
5127
|
PLAYER_CREATE_FINISH: string;
|
|
5130
5128
|
FALLBACK_ERROR: string;
|
|
5131
5129
|
FALLBACK: string;
|