Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration RTMP_STREAM_PUBLISH_STATE

States of the RTMP streaming.

Index

Enumeration members

RTMP_STREAM_PUBLISH_STATE_CONNECTING

RTMP_STREAM_PUBLISH_STATE_CONNECTING: = 1

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

RTMP_STREAM_PUBLISH_STATE_FAILURE

RTMP_STREAM_PUBLISH_STATE_FAILURE: = 4

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

RTMP_STREAM_PUBLISH_STATE_IDLE

RTMP_STREAM_PUBLISH_STATE_IDLE: = 0

The RTMP streaming has not started or has ended. This state is also triggered after you remove an RTMP address from the CDN by calling removePublishStreamUrl.

RTMP_STREAM_PUBLISH_STATE_RECOVERING

RTMP_STREAM_PUBLISH_STATE_RECOVERING: = 3

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

RTMP_STREAM_PUBLISH_STATE_RUNNING

RTMP_STREAM_PUBLISH_STATE_RUNNING: = 2

The RTMP streaming publishes. The SDK successfully publishes the RTMP streaming and returns this state.

Generated using TypeDoc