java.lang.Object

com.opentok.android.TransportStats


public class TransportStats extends Object

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

Modifier and Type

Class

Description

static @interface

TransportStats.NetworkCondition

Field Summary

Fields

Modifier and Type

Field

Description

long

connectionEstimatedBandwidth

Estimated available connection bandwidth, in bits per second (bps).

static final int

NETWORK_CONDITION_CRITICAL

static final int

NETWORK_CONDITION_EXCELLENT

static final int

NETWORK_CONDITION_FAIR

static final int

NETWORK_CONDITION_GOOD

static final String

NETWORK_CONDITION_REASON_BANDWIDTH

static final String

NETWORK_CONDITION_REASON_NONE

static final String

NETWORK_CONDITION_REASON_PACKET_LOSS

static final String

NETWORK_CONDITION_REASON_UNKNOWN

static final int

NETWORK_CONDITION_UNKNOWN

static final int

NETWORK_CONDITION_WARNING

int

networkCondition

Current network condition score.

String

networkConditionReason

The primary reason impacting the current network condition.

Constructor Summary

Constructors

Constructor

Description

TransportStats(long connectionEstimatedBandwidth, int networkCondition, String networkConditionReason)

Method Summary

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

NETWORK_CONDITION_UNKNOWN

public static final int NETWORK_CONDITION_UNKNOWN

See Also: : - [Constant Field Values]

NETWORK_CONDITION_CRITICAL

public static final int NETWORK_CONDITION_CRITICAL

See Also: : - [Constant Field Values]

NETWORK_CONDITION_WARNING

public static final int NETWORK_CONDITION_WARNING

See Also: : - [Constant Field Values]

NETWORK_CONDITION_FAIR

public static final int NETWORK_CONDITION_FAIR

See Also: : - [Constant Field Values]

NETWORK_CONDITION_GOOD

public static final int NETWORK_CONDITION_GOOD

See Also: : - [Constant Field Values]

NETWORK_CONDITION_EXCELLENT

public static final int NETWORK_CONDITION_EXCELLENT

See Also: : - [Constant Field Values]

NETWORK_CONDITION_REASON_NONE

public static final String NETWORK_CONDITION_REASON_NONE

See Also: : - [Constant Field Values]

NETWORK_CONDITION_REASON_BANDWIDTH

public static final String NETWORK_CONDITION_REASON_BANDWIDTH

See Also: : - [Constant Field Values]

NETWORK_CONDITION_REASON_PACKET_LOSS

public static final String NETWORK_CONDITION_REASON_PACKET_LOSS

See Also: : - [Constant Field Values]

NETWORK_CONDITION_REASON_UNKNOWN

public static final String NETWORK_CONDITION_REASON_UNKNOWN

See Also: : - [Constant Field Values]

connectionEstimatedBandwidth

public long connectionEstimatedBandwidth

Estimated available connection bandwidth, in bits per second (bps).

networkCondition

public int networkCondition

Current network condition score.

networkConditionReason

public String 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)