DirectCdnStreamingState

Current CDN streaming state.

Deprecated
Deprecated since v4.6.0.

Enumerations

IDLE
(0): Initial state before CDN streaming starts.
RUNNING
(1): Currently streaming to CDN. The SDK returns this value when startDirectCdnStreaming is called.
STOPPED
(2): Stopped streaming to CDN. The SDK returns this value when stopDirectCdnStreaming is called.
FAILED
(3): Failed to stream to CDN. You can troubleshoot the issue based on the information returned in the onDirectCdnStreamingStateChanged callback and try streaming again.
RECOVERING
(4): Attempting to reconnect the Agora server to the CDN. The SDK tries to reconnect up to 10 times. If reconnection fails, the streaming state changes to FAILED.