Agora Java API Reference for Android
Public Attributes | List of all members
io.agora.rtc.models.ChannelMediaOptions Class Reference

Public Attributes

boolean autoSubscribeAudio = true
 
boolean autoSubscribeVideo = true
 

Detailed Description

The channel media options.

Since
v3.0.0.

Member Data Documentation

◆ autoSubscribeAudio

boolean io.agora.rtc.models.ChannelMediaOptions.autoSubscribeAudio = true

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

boolean io.agora.rtc.models.ChannelMediaOptions.autoSubscribeVideo = true

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