AgoraRtcChannelMediaOptions Class Reference

Inherits from NSObject
Declared in AgoraObjects.h

Overview

The channel media options.

  autoSubscribeAudio

Determines whether to subscribe to audio streams when the user joins the channel:

@property (nonatomic, assign) BOOL autoSubscribeAudio

Discussion

  • true: (Default) Subscribe.
  • false: Do not subscribe.

This member serves a similar function to the muteAllRemoteAudioStreams method. After joining the channel, you can call the muteAllRemoteAudioStreams method to set whether to subscribe to audio streams in the channel.

Declared In

AgoraObjects.h

  autoSubscribeVideo

Determines whether to subscribe to video streams when the user joins the channel:

@property (nonatomic, assign) BOOL autoSubscribeVideo

Discussion

  • true: (Default) Subscribe.
  • false: Do not subscribe.

This member serves a similar function to the muteAllRemoteVideoStreams method. After joining the channel, you can call the muteAllRemoteVideoStreams method to set whether to subscribe to audio streams in the channel.

Declared In

AgoraObjects.h