startSpeedTestWithParams method

Future<int?> startSpeedTestWithParams(
  1. TRTCSpeedTestParams params
)

Start a speed test (recommended before entering the room)

Note:

  • the speed test will incur small basic service fees. For more information, please see Billing Overview.
  • Please perform the Network speed test before room entry, because if performed after room entry, the test will affect the normal audio/video transfer, and its result will be inaccurate due to interference in the room.
  • Only one network speed test task is allowed to run at the same time.

Parameters:

params Speed test options

Return value:

interface call result, <0: failure

Implementation

Future<int?> startSpeedTestWithParams(TRTCSpeedTestParams params) {
  return _cloudChannel!.invokeMethod('startSpeedTestWithParams', {
    "params": params.toJson(),
  });
}