/
HMSLocalVideoStats.ts
44 lines (36 loc) · 1.3 KB
/
HMSLocalVideoStats.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import type { HMSLayer } from './HMSLayer';
import type { HMSQualityLimitationReasons } from './HMSQualityLimitationReasons';
import type { HMSVideoResolution } from './HMSVideoResolution';
export class HMSLocalVideoStats {
// Outgoing bitrate of this track observed since previous report in Kb/s.
bitrate?: number;
// Total bytes sent by this track in the current session.
bytesSent?: number;
// Round trip time observed since previous report
roundTripTime?: number;
// Frame rate of video frames being sent (FPS)
frameRate?: number;
// Resolution of video frames being sent
resolution?: HMSVideoResolution;
// Reason for quality limitations
qualityLimitationReasons?: HMSQualityLimitationReasons;
/// Simulcast Layer
layer?: HMSLayer;
constructor(params: {
bitrate?: number;
bytesSent?: number;
roundTripTime?: number;
frameRate?: number;
resolution?: HMSVideoResolution;
qualityLimitationReasons?: HMSQualityLimitationReasons;
layer?: HMSLayer;
}) {
this.bitrate = params.bitrate;
this.bytesSent = params.bytesSent;
this.roundTripTime = params.roundTripTime;
this.frameRate = params.frameRate;
this.resolution = params.resolution;
this.qualityLimitationReasons = params.qualityLimitationReasons;
this.layer = params.layer;
}
}