OTNetworkCondition Constants Reference

Declared in OTNetworkStatsKit.h

OTNetworkCondition

Estimated network condition score for a transport.

This enum represents the overall health of the network connection for a given transport (local or remote). It is typically derived from metrics such as packet loss and estimated available bandwidth. Higher values indicate better network conditions.

OTNetworkConditionWarning and OTNetworkConditionCritical indicate degraded network conditions that may trigger audio fallback callbacks. If audio fallback is enabled, the SDK will notify via the corresponding callbacks, and in the critical state, video may be disabled to preserve call stability.

Definition

typedef NS_ENUM(int32_t, OTNetworkCondition ) {
   OTNetworkConditionUnknown = 0,
   OTNetworkConditionCritical = 1,
   OTNetworkConditionWarning = 2,
   OTNetworkConditionFair = 3,
   OTNetworkConditionGood = 4,
   OTNetworkConditionExcellent = 5,
};

Constants

OTNetworkConditionUnknown

Network condition could not be determined.

Declared In OTNetworkStatsKit.h.

OTNetworkConditionCritical

Severe network issues.

Declared In OTNetworkStatsKit.h.

OTNetworkConditionWarning

Poor network conditions.

Declared In OTNetworkStatsKit.h.

OTNetworkConditionFair

Moderate network conditions.

Declared In OTNetworkStatsKit.h.

OTNetworkConditionGood

Good network conditions.

Declared In OTNetworkStatsKit.h.

OTNetworkConditionExcellent

Excellent network conditions.

Declared In OTNetworkStatsKit.h.

Declared In

OTNetworkStatsKit.h