DirectCdnStreamingState enum

The current CDN streaming state.

Inheritance
Available extensions
Annotations
  • @JsonEnum(alwaysCreate: true)

Values

directCdnStreamingStateIdle → const DirectCdnStreamingState

0: The initial state before the CDN streaming starts.

directCdnStreamingStateRunning → const DirectCdnStreamingState

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.

directCdnStreamingStateStopped → const DirectCdnStreamingState

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.

directCdnStreamingStateFailed → const DirectCdnStreamingState

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.

directCdnStreamingStateRecovering → const DirectCdnStreamingState

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 directCdnStreamingStateFailed.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<DirectCdnStreamingState>
A constant List of the values in this enum, in order of their declaration.