RtmpStreamingState enum

RTMP 推流状态。

Constants

Connecting → const RtmpStreamingState

正在连接 Agora 推流服务器和 RTMP 服务器。SDK 调用 addPublishStreamUrl 方法后,会返回该状态。 详见 RtcEngine.addPublishStreamUrl

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

推流失败。失败后,你可以通过返回的错误码排查出错原因; 也可以再次调用 addPublishStreamUrl 重新尝试推流。 详见 RtcEngine.addPublishStreamUrl

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

推流未开始或已结束。成功调用 removePublishStreamUrl 方法删除推流地址后,也会返回该状态。 详见 RtcEngine.removePublishStreamUrl

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

正在恢复推流。当 CDN 出现异常,或推流短暂中断时,SDK 会自动尝试恢复推流,并返回该状态。

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

推流正在进行。SDK 成功推流后,会返回该状态。

@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
Returns a string representation of this object.
override

Operators

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