|
|
@@ -310,6 +310,12 @@ class RoomActivity : BaseActivity(), IRoomOpListener {
|
|
|
|
|
|
if (!granted) {
|
|
|
roomService.deviceController.userMuteMic(true, MicMuteReason.RECORD_PERMISSION_DENIED)
|
|
|
+ } else {
|
|
|
+ if (roomService.mediaService.isChannelJoined()) {
|
|
|
+ // 声网或者火山RTC, 必须先获取到权限后才能开始采集本地音频, 不然会没有声音. 所以这里toggle下
|
|
|
+ roomService.deviceController.enableLocalAudio(false)
|
|
|
+ roomService.deviceController.enableLocalAudio(true)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
onFinished.invoke()
|