AgoraStreamingConnectionState 常量

Declared in AgoraStreamingKit.h

AgoraStreamingConnectionState

推流过程中,推流状态改变后的状态码。

Definition

typedef NS_ENUM(NSUInteger, AgoraStreamingConnectionState ) {
   MediaStreamingStateDisconnected = 0,
   MediaStreamingStateConnected = 1,
   MediaStreamingStateReconnecting = 2,
   MediaStreamingStateFailed = 3,
};

Constants

MediaStreamingStateDisconnected

0: Agora Streaming Kit 和 Agora 服务器未连接。开始向 CDN 推流前和停止向 CDN 推流后都会报告该状态。

Declared In AgoraStreamingKit.h.

MediaStreamingStateConnected

1: Agora Streaming Kit 已经和 Agora 服务器取得连接。向 CDN 正常推流时会报告该状态。

Declared In AgoraStreamingKit.h.

MediaStreamingStateReconnecting

2: Agora Streaming Kit 正在尝试重新连接 Agora 服务器。

Declared In AgoraStreamingKit.h.

MediaStreamingStateFailed

3: Agora Streaming Kit 连接 CDN 失败。

Declared In AgoraStreamingKit.h.

Declared In

AgoraStreamingKit.h