RtmpStreamPublishState enum

The state of RTMP streaming.

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

Values

rtmpStreamPublishStateIdle → const RtmpStreamPublishState

0: Streaming has not started or has ended.

rtmpStreamPublishStateConnecting → const RtmpStreamPublishState

1: Connecting to the streaming server and CDN server.

rtmpStreamPublishStateRunning → const RtmpStreamPublishState

2: Streaming is in progress. This state is returned after successful streaming.

rtmpStreamPublishStateRecovering → const RtmpStreamPublishState

3: Recovering the stream. When the CDN encounters an issue or the stream is briefly interrupted, the SDK automatically attempts to recover the stream and returns this state. If recovery is successful, it transitions to rtmpStreamPublishStateRunning(2). If the server fails or recovery is not successful within 60 seconds, it transitions to rtmpStreamPublishStateFailure(4). If 60 seconds is too long, you can also manually attempt reconnection.

rtmpStreamPublishStateFailure → const RtmpStreamPublishState

4: Streaming failed. After failure, you can troubleshoot the error based on the returned error code.

rtmpStreamPublishStateDisconnecting → const RtmpStreamPublishState

5: The SDK is disconnecting from the streaming server and CDN server. When you call the stopRtmpStream method to end streaming normally, the SDK reports the streaming state as rtmpStreamPublishStateDisconnecting, then rtmpStreamPublishStateIdle.

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<RtmpStreamPublishState>
A constant List of the values in this enum, in order of their declaration.