DirectCdnStreamingState

Current CDN streaming state.

Deprecated
Deprecated since v4.6.2.

Enumerations

DirectCdnStreamingStateIdle
0: Initial state, streaming has not started yet.
DirectCdnStreamingStateRunning
1: Streaming is in progress. When you call startDirectCdnStreaming and streaming starts successfully, the SDK returns this value.
DirectCdnStreamingStateStopped
2: Streaming has ended normally. When you call stopDirectCdnStreaming to stop streaming, the SDK returns this value.
DirectCdnStreamingStateFailed
3: Streaming failed. You can troubleshoot based on the information reported by the onDirectCdnStreamingStateChanged callback, and then restart streaming.
DirectCdnStreamingStateRecovering
4: Attempting to reconnect to Agora server and CDN. Up to 10 reconnection attempts are made. If reconnection still fails, the streaming state changes to DirectCdnStreamingStateFailed.