Agora C++ API Reference for All Platforms
Public Member Functions | Public Attributes | List of all members
agora::rtc::ChannelMediaOptions Struct Reference

Public Member Functions

 ChannelMediaOptions ()
 

Public Attributes

bool autoSubscribeAudio
 
bool autoSubscribeVideo
 

Detailed Description

The channel media options.

Constructor & Destructor Documentation

◆ ChannelMediaOptions()

agora::rtc::ChannelMediaOptions::ChannelMediaOptions ( )
inline

Member Data Documentation

◆ autoSubscribeAudio

bool agora::rtc::ChannelMediaOptions::autoSubscribeAudio

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

  • 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.

◆ autoSubscribeVideo

bool agora::rtc::ChannelMediaOptions::autoSubscribeVideo

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

  • 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 video streams in the channel.