AgoraRtcChannelMediaOptions Class Reference

Inherits from NSObject
Declared in AgoraObjects.h

Overview

The channel media options.

  autoSubscribeAudio

Determines whether to automatically subscribe to all remote audio streams when the user joins a channel.

@property (nonatomic, assign) BOOL autoSubscribeAudio

Discussion

  • YES: (Default) Subscribe.
  • NO: Do not subscribe.

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

Declared In

AgoraObjects.h

  autoSubscribeVideo

Determines whether to automatically subscribe to all remote video streams when the user joins a channel.

@property (nonatomic, assign) BOOL autoSubscribeVideo

Discussion

  • YES: (Default) Subscribe.
  • NO: Do not subscribe.

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

Declared In

AgoraObjects.h

  publishLocalAudio

Sets whether to publish the local audio stream when the user joins a channel:

@property (nonatomic, assign) BOOL publishLocalAudio

Availability

v3.4.5

Discussion

  • YES: (Default) Publish.
  • NO: Do not publish.

This member serves a similar function to the muteLocalAudioStream method. After the user joins the channel, you can call the muteLocalAudioStream method to set whether to publish the local audio stream in the channel.

Declared In

AgoraObjects.h

  publishLocalVideo

Sets whether to publish the local video stream when the user joins a channel:

@property (nonatomic, assign) BOOL publishLocalVideo

Availability

v3.4.5

Discussion

  • YES: (Default) Publish.
  • NO: Do not publish.

This member serves a similar function to the muteLocalVideoStream method. After the user joins the channel, you can call the muteLocalVideoStream method to set whether to publish the local video stream in the channel.

Declared In

AgoraObjects.h