enableLastmileTest method
Enables the network connection quality test.
This method tests the quality of the users' network connections and is disabled by default.
Before users join a channel or before an audience switches to a host, call this method to check the uplink network quality. This method consumes additional network traffic, which may affect the communication quality. Call the RtcEngine.disableLastmileTest method to disable this test after receiving the RtcEngineEventHandler.lastmileQuality callback, and before the user joins a channel or switches the user role.
Note
- Do not use this method with the RtcEngine.startLastmileProbeTest method.
- Do not call any other methods before receiving the RtcEngineEventHandler.lastmileQuality callback. Otherwise, the callback may be interrupted by other methods and may not execute.
- In the ChannelProfile.LiveBroadcasting profile, a host should not call this method after joining a channel.
- If you call this method to test the last-mile quality, the SDK consumes the bandwidth of a video stream, whose bitrate corresponds to the bitrate you set in the RtcEngine.setVideoEncoderConfiguration method. After you join the channel, whether you have called the RtcEngine.disableLastmileTest method or not, the SDK automatically stops consuming the bandwidth.
Implementation
@override
Future<void> enableLastmileTest() {
return _invokeMethod('enableLastmileTest');
}