RtmpStreamingState enum

最近更新时间:2022-09-20 05:17:40

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 秒太长,也可以主动调用 removePublishStreamUrladdPublishStreamUrl 方法尝试重连。 详见 RtcEngine.removePublishStreamUrlRtcEngine.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

  • hashCodeint

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

  • index → int

    The integer index of this enum.final

  • runtimeTypeType

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

Methods

Operators