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 proactively, the SDK returns this value.
directCdnStreamingStateFailed
3: Streaming failed. You can troubleshoot the issue using the information reported in the onDirectCdnStreamingStateChanged callback, and then restart streaming.
directCdnStreamingStateRecovering
4: Attempting to reconnect to the Agora server and CDN. Will retry up to 10 times. If reconnection still fails, the streaming state changes to directCdnStreamingStateFailed.