Package com.opentok.android
Class TransportStats
java.lang.Object
com.opentok.android.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 Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionlongEstimated available connection bandwidth, in bits per second (bps).static final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intintCurrent network condition score.The primary reason impacting the current network condition. -
Constructor Summary
ConstructorsConstructorDescriptionTransportStats(long connectionEstimatedBandwidth, int networkCondition, String networkConditionReason) -
Method Summary
-
Field Details
-
NETWORK_CONDITION_UNKNOWN
public static final int NETWORK_CONDITION_UNKNOWN- See Also:
-
NETWORK_CONDITION_CRITICAL
public static final int NETWORK_CONDITION_CRITICAL- See Also:
-
NETWORK_CONDITION_WARNING
public static final int NETWORK_CONDITION_WARNING- See Also:
-
NETWORK_CONDITION_FAIR
public static final int NETWORK_CONDITION_FAIR- See Also:
-
NETWORK_CONDITION_GOOD
public static final int NETWORK_CONDITION_GOOD- See Also:
-
NETWORK_CONDITION_EXCELLENT
public static final int NETWORK_CONDITION_EXCELLENT- See Also:
-
NETWORK_CONDITION_REASON_NONE
- See Also:
-
NETWORK_CONDITION_REASON_BANDWIDTH
- See Also:
-
NETWORK_CONDITION_REASON_PACKET_LOSS
- See Also:
-
NETWORK_CONDITION_REASON_UNKNOWN
- See Also:
-
connectionEstimatedBandwidth
public long connectionEstimatedBandwidthEstimated available connection bandwidth, in bits per second (bps). -
networkCondition
public int networkConditionCurrent network condition score. -
networkConditionReason
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.
-
-
Constructor Details
-
TransportStats
public TransportStats(long connectionEstimatedBandwidth, int networkCondition, String networkConditionReason)
-