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:
- Calls muteLocalAudioStream(YES) or muteLocalVideoStream(YES) to stop sending local streams.
- The local user calls disableAudio or disableVideo to disable the entire audio or video module.
- The local user calls enableLocalAudio(NO) or enableLocalVideo(NO) to disable the local audio sampling or video capturing.
- The role of the local user is AgoraClientRoleAudience.
- The local user calls the following methods to stop receiving remote streams:
- Calls muteRemoteAudioStream(YES), muteAllRemoteAudioStreams(YES), or setDefaultMuteAllRemoteAudioStreams(YES) to stop receiving remote audio streams.
- Calls muteRemoteVideoStream(YES), muteAllRemoteVideoStreams(YES), or setDefaultMuteAllRemoteVideoStreams(YES) to stop receiving remote video 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