Constructor
new TRTCRemoteStatistics(userId, audioPacketLoss, videoPacketLoss, width, height, frameRate, videoBitrate, audioSampleRate, audioBitrate, jitterBufferDelay, point2PointDelay, audioTotalBlockTime, audioBlockRate, videoTotalBlockTime, videoBlockRate, finalLoss, remoteNetworkUplinkLoss, remoteNetworkRTT, streamType)
Parameters:
Name | Type | Description |
---|---|---|
userId |
String |
required
user ID |
audioPacketLoss |
Number |
required
total packet loss rate (%) of the audio stream
|
videoPacketLoss |
Number |
required
total packet loss rate (%) of the video stream
|
width |
Number |
required
remote video width in px |
height |
Number |
required
remote video height in px |
frameRate |
Number |
required
remote video frame rate (fps) |
videoBitrate |
Number |
required
remote video bitrate (Kbps) |
audioSampleRate |
Number |
required
remote audio sample rate (Hz) |
audioBitrate |
Number |
required
remote audio bitrate (Kbps) |
jitterBufferDelay |
Number |
required
playback delay (ms) |
point2PointDelay |
Number |
required
end-to-end delay (ms)
|
audioTotalBlockTime |
Number |
required
cumulative audio playback lag duration (ms) |
audioBlockRate |
Number |
required
audio playback lag rate (%) |
videoTotalBlockTime |
Number |
required
cumulative video playback lag duration (ms) |
videoBlockRate |
Number |
required
video playback lag rate (%) |
finalLoss |
Number |
required
total packet loss rate (%) of the audio/video stream Deprecated, please use audioPacketLoss and videoPacketLoss instead. |
remoteNetworkUplinkLoss |
Number |
required
upstream packet loss rate (%) from the SDK to cloud
The smaller the value, the better. If |
remoteNetworkRTT |
Number |
required
round-trip delay (ms) from the SDK to cloud
This value represents the total time it takes to send a network packet from the SDK to the cloud and then send a network packet back from the cloud to the SDK, i.e., the total time it takes for a network packet to go through the linkage of
"SDK -> cloud -> SDK". The smaller the value, the better. If |
streamType |
TRTCVideoStreamType |
required
video stream type (HD big image | smooth small image | substream image) |