TransportStats
public class TransportStats
Provides network-level transport statistics.
This class represents low-level metrics related to the underlying
WebRTC connection transport layer, such as available bandwidth.
Nested types: TransportStats.NetworkCondition
Properties
| Name |
Type |
Description |
NETWORK_CONDITION_UNKNOWN |
int |
static final Constant value: 0 |
NETWORK_CONDITION_CRITICAL |
int |
static final Constant value: 1 |
NETWORK_CONDITION_WARNING |
int |
static final Constant value: 2 |
NETWORK_CONDITION_FAIR |
int |
static final Constant value: 3 |
NETWORK_CONDITION_GOOD |
int |
static final Constant value: 4 |
NETWORK_CONDITION_EXCELLENT |
int |
static final Constant value: 5 |
NETWORK_CONDITION_REASON_NONE |
String |
static final Constant value: none |
NETWORK_CONDITION_REASON_BANDWIDTH |
String |
static final Constant value: bandwidth |
NETWORK_CONDITION_REASON_PACKET_LOSS |
String |
static final Constant value: packet_loss |
NETWORK_CONDITION_REASON_UNKNOWN |
String |
static final Constant value: unknown |
NETWORK_CONDITION_REASON_NO_SUBSCRIBERS |
String |
static final Constant value: no_subscribers |
NETWORK_CONDITION_REASON_DOWNSTREAM_CONSTRAINT |
String |
static final Constant value: downstream_constraint |
connectionEstimatedBandwidth |
long |
Estimated available connection bandwidth, in bits per second (bps). |
networkCondition |
int |
Current network condition score. |
networkConditionReason |
String |
The primary reason impacting the current network condition. This value indicates the dominant factor influencing the network condition score, such as bandwidth limitations, packet loss, or other network-related causes. |
Methods
| Name |
Description |
TransportStats(connectionEstimatedBandwidth, networkCondition, networkConditionReason) |
|
TransportStats(connectionEstimatedBandwidth, networkCondition, networkConditionReason)
Parameters:
| Name |
Type |
Description |
connectionEstimatedBandwidth |
long |
|
networkCondition |
int |
|
networkConditionReason |
String |
|