取消音频订阅
This commit is contained in:
parent
30b34d5872
commit
fc5e9e312b
|
|
@ -230,7 +230,7 @@ const agora = {
|
||||||
updateChannelMediaOptionsEx: async (bool: boolean) => {
|
updateChannelMediaOptionsEx: async (bool: boolean) => {
|
||||||
rtcEngine.updateChannelMediaOptionsEx({
|
rtcEngine.updateChannelMediaOptionsEx({
|
||||||
clientRoleType: bool ? ClientRoleType.ClientRoleBroadcaster : ClientRoleType.ClientRoleAudience, //用户角色 ClientRoleBroadcaster 主播 ClientRoleAudience 观众
|
clientRoleType: bool ? ClientRoleType.ClientRoleBroadcaster : ClientRoleType.ClientRoleAudience, //用户角色 ClientRoleBroadcaster 主播 ClientRoleAudience 观众
|
||||||
autoSubscribeAudio: true,//设置是否自动订阅所有音频流
|
autoSubscribeAudio: false,//设置是否自动订阅所有音频流
|
||||||
autoSubscribeVideo: true,//设置是否自动订阅所有视频流
|
autoSubscribeVideo: true,//设置是否自动订阅所有视频流
|
||||||
publishMicrophoneTrack: true,//设置是否发布麦克风采集到的音频
|
publishMicrophoneTrack: true,//设置是否发布麦克风采集到的音频
|
||||||
publishCameraTrack: true,//设置是否发布摄像头采集的视频
|
publishCameraTrack: true,//设置是否发布摄像头采集的视频
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue