Show / Hide Table of Contents

Struct TRTCSpeedTestResult

6.8 Network speed testing result

Before room entry, you can use the `startSpeedTest` of `TRTCCloud` to test the network speed (do not call the API during a call). The result will be returned every 2-3 seconds, for one IP address at a time.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: trtc
Assembly: cs.temp.dll.dll
Syntax
public struct TRTCSpeedTestResult
Remarks

quality is the network quality measured by the SDK. Lower packet loss and shorter RTT mean higher network quality.

- `upLostRate` is the upstream packet loss rate. For example, `0.3` indicates that for every 10 data packets sent to the server, 3 may be lost.

- `downLostRate` is the downstream packet loss rate. For example, `0.2` indicates that for every 10 data packets received from the server, 2 may be lost.

- `rtt` is the time it takes for data to travel from the current device to the Tencent Cloud server and back again. The normal range of RTT is 10-100 ms. The shorter, the better.

Fields

downLostRate

Downstream packet loss rate. Value range: 0-1.0. For example, 0.2 indicates that for every 10 data packets received from the server, 2 may be lost.

Declaration
public float downLostRate
Field Value
Type Description
System.Single

ip

Server IP address

Declaration
public String ip
Field Value
Type Description
String

quality

Network quality measured by the SDK. Lower packet loss and shorter RTT mean higher network quality.

Declaration
public TRTCQuality quality
Field Value
Type Description
TRTCQuality

rtt

The time (ms) it takes for data to travel from the current device to the Tencent Cloud server and back again. The normal range of RTT is 10-100 ms. The shorter, the better.

Declaration
public int rtt
Field Value
Type Description
System.Int32

upLostRate

Upstream packet loss rate. Value range: 0-1.0. For example, 0.3 indicates that for every 10 data packets sent to the server, 3 may be lost.

Declaration
public float upLostRate
Field Value
Type Description
System.Single
In This Article
Back to top Generated by DocFX