RtmpStreamingState enum Null safety

The RTMP or RTMPS streaming state.

Constants

Connecting → const RtmpStreamingState

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

@JsonValue(1)
const RtmpStreamingState(1)
Failure → const RtmpStreamingState

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

@JsonValue(4)
const RtmpStreamingState(4)
Idle → const RtmpStreamingState

The RTMP or RTMPS 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.

@JsonValue(0)
const RtmpStreamingState(0)
Recovering → const RtmpStreamingState

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

@JsonValue(3)
const RtmpStreamingState(3)
Running → const RtmpStreamingState

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

@JsonValue(2)
const RtmpStreamingState(2)
values → const List<RtmpStreamingState>

A constant List of the values in this enum, in order of their declaration.

const List<RtmpStreamingState>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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