Description
The microphone is not working in both parts of the meeting. And when you click the mute button it returns the response (.audioNotConnected).
There is no runtime error in the log.
I need help to resolve this issue
Screenshots
to mute and unmute this message appears.
Smartphone (please complete the following information):
- Device: [e.g. iPhone XR]
- OS: [e.g. iOS 14.2]
- Version zoom Sdk 5.0.24437.0708
Additional context
This code snippet below to create the service and the meeting.
if let meetingService = MobileRTC.shared().getMeetingService() {
meetingService.customizedUImeetingDelegate = self
meetingService.delegate = self
meetingService.connectMyAudio(true)
let params = MobileRTCMeetingJoinParam()
params.meetingNumber = <meeting id>
params.userName = <user name>
params.zak = <zoom token>
params.password = <password>
let response = meetingService.joinMeeting(with: params)
meetingService.connectMyAudio(true)
print("Got response from start: \(response)")
} else {}
And the one below to unmute and mute the mic, when you click the button.
guard let meetingService = MobileRTC.shared().getMeetingService() else { return }
let newMuteState = !meetingService.isMyAudioMuted()
let response = meetingService.muteMyAudio(newMuteState)
if response == .success {
updateMicIcon(on: !newMuteState)
} else {
alert(message: “Não foi possível (newMuteState ? “des” : “”)ativar o áudio”)
}
Note: (.audioNotConnected) is the response of the meetingService.muteMyAudio (newMuteState) function.