Agora Java API Reference for Android
io.agora.rtc.models.ChannelMediaOptions Class Reference

Public Attributes

boolean autoSubscribeAudio = true
 
boolean autoSubscribeVideo = true
 
boolean publishLocalAudio = true
 
boolean publishLocalVideo = 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 automatically subscribe to all remote audio streams when the user joins a channel:

  • true: (Default) Subscribe.
  • false: 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.

◆ autoSubscribeVideo

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

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

  • true: (Default) Subscribe.
  • false: 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.

◆ publishLocalAudio

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

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

  • true: (Default) Publish.
  • false: 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.

Since
v3.4.5

◆ publishLocalVideo

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

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

  • true: (Default) Publish.
  • false: 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.

Since
v3.4.5