DirectCdnStreamingState
Current CDN streaming state.
- Deprecated
- Deprecated since v4.6.2.
Enumerations
- DirectCdnStreamingStateIdle
- 0: Initial state, streaming has not started yet.
- DirectCdnStreamingStateRunning
- 1: Streaming in progress. When you call startDirectCdnStreaming and the streaming starts successfully, the SDK returns this value.
- DirectCdnStreamingStateStopped
- 2: Streaming has ended normally. When you call stopDirectCdnStreaming to stop streaming manually, the SDK returns this value.
- DirectCdnStreamingStateFailed
- 3: Streaming failed. You can troubleshoot the issue using the information reported in the onDirectCdnStreamingStateChanged callback, then restart streaming.
- DirectCdnStreamingStateRecovering
- 4: Attempting to reconnect to the Agora server and CDN. The SDK tries to reconnect up to 10 times. If reconnection still fails, the streaming state changes to
DirectCdnStreamingStateFailed.