Package io.agora.rtc2
Enum Class DirectCdnStreamingState
- All Implemented Interfaces:
Serializable,Comparable<DirectCdnStreamingState>,Constable
Deprecated.
v4.6.0.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.3: Fails to push streams to the CDN.Deprecated.0: The initial state before the CDN streaming starts.Deprecated.4: Tries to reconnect the Agora server to the CDN.Deprecated.1: Streams are being pushed to the CDN.Deprecated.2: Stops pushing streams to the CDN. -
Method Summary
Modifier and TypeMethodDescriptionstatic DirectCdnStreamingStatefromInt(int v) Deprecated.intgetValue()Deprecated.static DirectCdnStreamingStateDeprecated.Returns the enum constant of this class with the specified name.static DirectCdnStreamingState[]values()Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
IDLE
Deprecated.0: The initial state before the CDN streaming starts. -
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
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
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
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
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
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 nameNullPointerException- if the argument is null
-
getValue
public int getValue()Deprecated. -
fromInt
Deprecated.
-