TRTCLocalStatistics

TRTCLocalStatistics

Local audio/video metrics

Constructor

new TRTCLocalStatistics(width, height, frameRate, videoBitrate, audioSampleRate, audioBitrate, streamType)

Parameters:
Name Type Description
width Number required

local video width in px

height Number required

local video height in px

frameRate Number required

local video frame rate in fps, i.e., how many video frames there are per second

videoBitrate Number required

remote video bitrate in Kbps, i.e., how much video data is generated per second

audioSampleRate Number required

emote audio sample rate (Hz)

audioBitrate Number required

local audio bitrate in Kbps, i.e., how much audio data is generated per second

streamType TRTCVideoStreamType required

video stream type (HD big image | smooth small image | substream image)