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 |
userId |
String |
required
User ID, please refer to the relevant instructions in |
userSig |
String |
required
User signature, please refer to the relevant instructions in |
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). |