AgoraStreamSubscribeState Constants Reference

Declared in AgoraEnumerates.h

AgoraStreamSubscribeState

The subscribing state.

Definition

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

Constants

AgoraStreamSubscribeIdle

0: The initial subscribing state after joining the channel.

Declared In AgoraEnumerates.h.

AgoraStreamSubscribeNoSubscribed

1: Fails to subscribe to the remote stream. Possible reasons:

  • The remote user:
    • The role of the local user is AgoraClientRoleAudience.
  • The local user calls the following methods to stop receiving remote streams:
  • Declared In AgoraEnumerates.h.

    AgoraStreamSubscribeSubscribing

    2: Subscribing.

    Declared In AgoraEnumerates.h.

    AgoraStreamSubscribeSubscribed

    3: Subscribes to and receives the remote stream successfully.

    Declared In AgoraEnumerates.h.

    Declared In

    AgoraEnumerates.h