TRTCStatistics class
Network and performance metrics
- Annotations
-
- @JsonSerializable(explicitToJson: true, includeIfNull: false)
Constructors
-
TRTCStatistics({int appCpu = -1, int systemCpu = -1, int upLoss = -1, int downLoss = -1, int rtt = -1, int gatewayRtt = -1, int sentBytes = -1, int receivedBytes = -1, List<
TRTCLocalStatistics> ? localStatisticsArray, List<TRTCRemoteStatistics> ? remoteStatisticsArray}) -
TRTCStatistics.fromJson(Map<
String, dynamic> json) -
factory
Properties
- appCpu ↔ int
-
- Field description: CPU utilization (%) of the current application, Android 8.0 and above systems are not supported
getter/setter pair - downLoss ↔ int
-
- Field description: downstream packet loss rate (%) from cloud to the SDK
- The smaller the value, the better. If downLoss is 0% , the downstream network quality is very good, and the data packets received from the cloud are basically not lost.
- If downLoss is 30% , 30% of the audio/video data packets sent to the SDK by the cloud are lost on the transfer linkage.
getter/setter pair - gatewayRtt ↔ int
-
- Field description: round-trip delay (ms) from the SDK to gateway
- This value represents the total time it takes to send a network packet from the SDK to the gateway and then send a network packet back from the gateway to the SDK, i.e., the total time it takes for a network packet to go through the linkage of "SDK -> gateway -> SDK".
- The smaller the value, the better. If gatewayRtt is below 50 ms, it means a short audio/video call delay; if gatewayRtt is above 200 ms, it means a long audio/video call delay.
- It should be explained that gatewayRtt is invalid for cellular network.
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
-
localStatisticsArray
↔ List<
TRTCLocalStatistics> ? -
- Field description: local audio/video statistics
- As there may be three local audio/video streams (i.e., HD big image, smooth small image, and substream image), the local audio/video statistics are an array.
getter/setter pair - receivedBytes ↔ int
-
- Field description: total number of received bytes (including signaling data and audio/video data)
getter/setter pair -
remoteStatisticsArray
↔ List<
TRTCRemoteStatistics> ? -
- Field description: remote audio/video statistics
- As there may be multiple concurrent remote users, and each of them may have multiple concurrent audio/video streams (i.e., HD big image, smooth small image, and substream image), the remote audio/video statistics are an array.
getter/setter pair - rtt ↔ int
-
- Field description: round-trip delay (ms) from the SDK to cloud
- This value represents the total time it takes to send a network packet from the SDK to the cloud and then send a network packet back from the cloud to the SDK, i.e., the total time it takes for a network packet to go through the linkage of "SDK -> cloud -> SDK".
- The smaller the value, the better. If rtt is below 50 ms, it means a short audio/video call delay; if rtt is above 200 ms, it means a long audio/video call delay.
- It should be explained that rtt represents the total time spent on the linkage of "SDK -> cloud -> SDK"; therefore, there is no need to distinguish between upRtt and downRtt .
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sentBytes ↔ int
-
- Field description: total number of sent bytes (including signaling data and audio/video data)
getter/setter pair - systemCpu ↔ int
-
- Field description: CPU utilization (%) of the current system, Android 8.0 and above systems are not supported
getter/setter pair - upLoss ↔ int
-
- Field description: CPU utilization (%) of the current system, Android 8.0 and above systems are not supported
- The smaller the value, the better. If upLoss is 0% , the upstream network quality is very good, and the data packets uploaded to the cloud are basically not lost.
- If upLoss is 30% , 30% of the audio/video data packets sent to the cloud by the SDK are lost on the transfer linkage.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited