RTMP 推流状态。
Constants
-
Connecting → const RtmpStreamingState
正在连接 AR 推流服务器和 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 会自动尝试恢复推流,并返回该状态。如成功恢复推流,则进入状态
Running
。详见 RtmpStreamingState.Running。如服务器出错或 60 秒内未成功恢复,则进入状态Failure
。详见 RtmpStreamingState.Failure。如果觉得 60 秒太长,也可以主动调用removePublishStreamUrl
和addPublishStreamUrl
方法尝试重连。 详见 RtcEngine.removePublishStreamUrl 和 RtcEngine.addPublishStreamUrl。@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
-
The hash code for this object. [...]read-only, inherited
-
index → int
The integer index of this enum.final
-
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
-
Returns a string representation of this object.override
Operators
-
operator ==(Object other) → bool
The equality operator. [...]inherited