TRTCSpeedTestParams

TRTCSpeedTestParams

Network speed testing parameters

Constructor

new TRTCSpeedTestParams(sdkAppId, userId, userSig, expectedUpBandwidth, expectedDownBandwidth)

You can test the network speed through the startSpeedTest interface before the user enters the room (this API cannot be called during a call).

Parameters:
Name Type Description
sdkAppId Number required

Application ID, please refer to the relevant instructions in TRTCParams.

userId String required

User ID, please refer to the relevant instructions in TRTCParams.

userSig String required

User signature, please refer to the relevant instructions in TRTCParams.

expectedUpBandwidth Number required

Expected upstream bandwidth (Kbps, value range: 10 to 5000, no upstream bandwidth test when it is 0).

expectedDownBandwidth Number required

Expected downstream bandwidth (Kbps, value range: 10 to 5000, no downstream bandwidth test when it is 0).