AgoraStreamSubscribeState Constants Reference

Declared in AgoraEnumerates.h

AgoraStreamSubscribeState

订阅状态。

Definition

typedef NS_ENUM(NSUInteger, AgoraStreamSubscribeState ) {
   AgoraStreamSubscribeIdle = 0,
   AgoraStreamSubscribeNoSubscribed = 1,
   AgoraStreamSubscribeSubscribing = 2,
   AgoraStreamSubscribeSubscribed = 3,
};

Constants

AgoraStreamSubscribeIdle

0: 加入频道后的初始订阅状态。

Declared In AgoraEnumerates.h.

AgoraStreamSubscribeNoSubscribed

1: 订阅失败。可能是因为:

  • 远端用户:
    • 用户角色为观众。
  • 本地用户调用以下方法停止接收远端媒体流:
  • Declared In AgoraEnumerates.h.

    AgoraStreamSubscribeSubscribing

    2: 正在订阅。

    Declared In AgoraEnumerates.h.

    AgoraStreamSubscribeSubscribed

    3: 收到了远端流,订阅成功。

    Declared In AgoraEnumerates.h.

    Declared In

    AgoraEnumerates.h