RtmpStreamingState enum

The RTMP streaming state.

Inheritance
Available extensions

Values

Idle → const RtmpStreamingState

The RTMP streaming has not started or has ended. This state is also triggered after you remove an RTMP address from the CDN by calling RtcEngine.removePublishStreamUrl.

Connecting → const RtmpStreamingState

The SDK is connecting to anyrtc’s streaming server and the RTMP server. This state is triggered after you call the RtcEngine.addPublishStreamUrl method.

Running → const RtmpStreamingState

The RTMP streaming is being published. The SDK successfully publishes the RTMP streaming and returns this state.

Recovering → const RtmpStreamingState

The RTMP streaming is recovering. When exceptions occur to the CDN, or the streaming is interrupted, the SDK attempts to resume RTMP streaming and returns this state.

Failure → const RtmpStreamingState

The RTMP streaming fails. See the errorCode parameter for the detailed error information. You can also call the RtcEngine.addPublishStreamUrl method to publish the RTMP streaming again.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<RtmpStreamingState>
A constant List of the values in this enum, in order of their declaration.