Package io.agora.rtc2

Enum Class DirectCdnStreamingState

java.lang.Object
java.lang.Enum<DirectCdnStreamingState>
io.agora.rtc2.DirectCdnStreamingState
All Implemented Interfaces:
Serializable, Comparable<DirectCdnStreamingState>, Constable

@Deprecated public enum DirectCdnStreamingState extends Enum<DirectCdnStreamingState>
Deprecated.
v4.6.0.
  • Enum Constant Details

    • IDLE

      public static final DirectCdnStreamingState IDLE
      Deprecated.
      0: The initial state before the CDN streaming starts.
    • RUNNING

      public static final DirectCdnStreamingState RUNNING
      Deprecated.
      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

      public static final DirectCdnStreamingState STOPPED
      Deprecated.
      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

      public static final DirectCdnStreamingState FAILED
      Deprecated.
      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

      public static final DirectCdnStreamingState RECOVERING
      Deprecated.
      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.
  • Method Details

    • values

      public static DirectCdnStreamingState[] values()
      Deprecated.
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DirectCdnStreamingState valueOf(String name)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Deprecated.
    • fromInt

      public static DirectCdnStreamingState fromInt(int v)
      Deprecated.