Description
I’m getting user’s ID inside onUserAudioStatusChange
delegate and using it to get ZoomSDKUserInfo
instance using getUserByUserID
method executed on meeting action controller, but it always returns nil
.
It’s nil no matter when the event is triggered - after joining the meeting and connecting to audio, after clicking on mute / unmute.
Exactly the same code works fine in your Sample App. So I’m wondering what’s the missing piece here.
func onUserAudioStatusChange(_ userAudioStatusArray: [Any]!) {
for userAudioStatus in userAudioStatusArray as! [ZoomSDKUserAudioStauts] {
let userID: UInt32 = userAudioStatus.getUserID()
if (self.meetingActionController == nil) {
self.meetingActionController = ZoomSDK.shared()?.getMeetingService()?.getMeetingActionController()
}
let userInfo: ZoomSDKUserInfo? = self.meetingActionController!.getUserByUserID(userID)
if(userInfo != nil && userInfo!.isMySelf())
{
self.mySelfUserInfo = userInfo!
}
}
}
Which version?
4.6.21666.0427
Screenshots
Macbook:
- Device: MacBook Pro (Retina, 15-inch, Mid 2015)
- OS: macOS Catalina 10.15.2 (19C57)
- Xcode: Version 10.2.1 (10E1001)