Video SDK v3.7.1 API Reference for Unity
|
Public Attributes | |
bool | autoSubscribeAudio |
bool | autoSubscribeVideo |
bool | publishLocalAudio |
bool | publishLocalVideo |
The channel media options.
agora_gaming_rtc.ChannelMediaOptions.ChannelMediaOptions | ( | bool | _autoSubscribeAudio = true , |
bool | _autoSubscribeVideo = false , |
||
bool | _publishLocalAudio = true , |
||
bool | _publishLocalVideo = true |
||
) |
bool agora_gaming_rtc.ChannelMediaOptions.autoSubscribeAudio |
Determines whether to subscribe to audio streams when the user joins the channel:
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.
bool agora_gaming_rtc.ChannelMediaOptions.autoSubscribeVideo |
Determines whether to subscribe to video streams when the user joins the channel:
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.
bool agora_gaming_rtc.ChannelMediaOptions.publishLocalAudio |
whether to publish the local audio stream when the user joins a channel:
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.
bool agora_gaming_rtc.ChannelMediaOptions.publishLocalVideo |
whether to publish the local video stream when the user joins a channel:
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.