Agora Java API Reference for Android

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.DirectCdnStreamingState Enum Reference

The current CDN streaming state. More...

## Public Member Functions
int | getValue ()

## Static Public Member Functions
static DirectCdnStreamingState | fromInt (int v)

## Public Attributes
| IDLE =(0)
| RUNNING =(1)
| STOPPED =(2)
| FAILED =(3)
| RECOVERING =(4)

## Detailed Description

The current CDN streaming state.

Deprecated:
  v4.6.0.

## Member Data Documentation

## ◆ IDLE

io.agora.rtc2.DirectCdnStreamingState.IDLE =(0)

0: The initial state before the CDN streaming starts.

## ◆ RUNNING

io.agora.rtc2.DirectCdnStreamingState.RUNNING =(1)

1: Streams are being pushed to the CDN. The SDK returns this value when you call the `startDirectCdnStreaming` method to push streams to the CDN.

## ◆ STOPPED

io.agora.rtc2.DirectCdnStreamingState.STOPPED =(2)

2: Stops pushing streams to the CDN. The SDK returns this value when you call the `stopDirectCdnStreaming` method to stop pushing streams to the CDN.

## ◆ FAILED

io.agora.rtc2.DirectCdnStreamingState.FAILED =(3)

3: Fails to push streams to the CDN. You can troubleshoot the issue with the information reported by the `onDirectCdnStreamingStateChanged` callback, and then push streams to the CDN again.

## ◆ RECOVERING

io.agora.rtc2.DirectCdnStreamingState.RECOVERING =(4)

4: Tries to reconnect the Agora server to the CDN. The SDK attempts to reconnect a maximum of 10 times; if the connection is not restored, the streaming state becomes FAILED.