TRTCSpeedTestResult class

Network speed test result

The startSpeedTest: API can be used to test the network speed before a user enters a room (this API cannot be called during a call).

Constructors

TRTCSpeedTestResult({required bool success, required String errMsg, required String ip, required int quality, required double upLostRate, required double downLostRate, required int rtt, required int availableUpBandwidth, required int availableDownBandwidth, required int upJitter, required int downJitter})

Properties

availableDownBandwidth int
Downstream bandwidth (in kbps, -1: invalid value).
getter/setter pair
availableUpBandwidth int
Upstream bandwidth (in kbps, -1: invalid value).
getter/setter pair
downJitter int
Downlink data packet jitter (ms) refers to the stability of data communication in the user's current network environment. The smaller the value, the better. The normal value range is 0ms - 100ms. -1 means that the speed test failed to obtain an effective value. Generally, the Jitter of the WiFi network will be slightly larger than that of the 4G/5G environment.
getter/setter pair
downLostRate double
Downstream packet loss rate between 0 and 1.0. For example, 0.2 indicates that 2 data packets may be lost in every 10 packets received from the server.
getter/setter pair
errMsg String
Error message for network speed test.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ip String
Server IP address.
getter/setter pair
quality int
Network quality, which is tested and calculated based on the internal evaluation algorithm. For more information, please see TRTCCloudDef.TRTC_QUALITY_
getter/setter pair
rtt int
Delay in milliseconds, which is the round-trip time between the current device and TRTC server. The smaller the value, the better. The normal value range is 10–100 ms.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool
Whether the network speed test is successful.
getter/setter pair
upJitter int
Uplink data packet jitter (ms) refers to the stability of data communication in the user's current network environment. The smaller the value, the better. The normal value range is 0ms - 100ms. -1 means that the speed test failed to obtain an effective value. Generally, the Jitter of the WiFi network will be slightly larger than that of the 4G/5G environment.
getter/setter pair
upLostRate double
Upstream packet loss rate between 0 and 1.0. For example, 0.3 indicates that 3 data packets may be lost in every 10 packets sent to the server.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited