Description
Callback UserId of onUserAudioStatusChanged is invalid.
onUserVideoStatusChanged is correct.
Which Android Meeting SDK version?
zoom-sdk-android-5.9.1.3662
To Reproduce(If applicable)
Update to the latest SDK (zoom-sdk-android-5.9.1.3662)
The onUserAudioStatusChanged called when turning on / off the microphone and the UserId turned on / off are different. I am participating as a guest user.
Additional context
logcat ``` 01-12 16: 36: 41.467 15989 15989 V TTT: callback id: 16779266 vs myUserID: 16779264 ```
I tried testing this on the latest version of the SDK, but am unable to reproduce. When I mute/unmute my own mic, the callback consistently shows the same userId as the getMyUserID method. The value of the ID also stays consistent across multiple mute/unmute cycles. Are you sure that you are comparing the correct ID? If you’re unsure, please provide a code snippet of how you are getting your own ID for comparison.
Thank you for your confirmation.
We solved it by using inMeetingService.isMyself in conclusion.
I used getMyUserId to get the UserId used for comparison with the callback. Below is the Kotlin implementation. Please note that it is Property.
private val myUserID: Long
get () {
val inMeetingService = ZoomSDK.getInstance ().inMeetingService
return inMeetingService?.myUserID?: -1
}
The comparison between the callback and myUserID.
override fun onUserAudioStatusChanged (
userId: Long,
audioStatus: InMeetingServiceListener.AudioStatus
) {
if (userId! = myUserID) {
return
}
doSomething ()
The strange thing is that onUserVideoStatusChanged is Ok, but onUserAudioStatusChanged doesn’t match.
However, what we wanted to do was realized. Thank you for your help.
There was an issue identified across all platforms where incorrect IDs could be returned in audio callbacks. Please let me know if you are still seeing any inconsistent behavior on the latest version of the SDK and we can look into this further.