TRTCSpeedTestParams

TRTCSpeedTestParams

5.7 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

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

userId String

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

userSig String

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

expectedUpBandwidth Number

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

expectedDownBandwidth Number

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