# How to get current active speaker

**URL:** <https://devforum.zoom.us/t/how-to-get-current-active-speaker/31280>\
**Category:** Android\
**Created:** [September 25, 2020, 8:14am UTC](https://devforum.zoom.us/t/how-to-get-current-active-speaker/31280 "2020-09-25T08:14:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![reamer](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@reamer](https://devforum.zoom.us/u/reamer)\
**Post date:** [September 25, 2020, 8:14am UTC](https://devforum.zoom.us/t/how-to-get-current-active-speaker/31280/1 "2020-09-25T08:14:49Z")

</div>

**Description**  
Can we get the current active speaker from `onActiveSpeakerVideoUserChanged` callback?

Seems the `onActiveSpeakerVideoUserChanged` will not be triggered when there are only 2 users in the meeting?

**Which version?**  
v5.0.24437.0708

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 28, 2020, 8:19pm UTC](https://devforum.zoom.us/t/how-to-get-current-active-speaker/31280/2 "2020-09-28T20:19:17Z")

</div>

Hi @reamer, thanks for the post.

Can you please provide some more info about your use case while we look into this behavior?

Thanks!

---

<div class="post-metadata">

**Author:** ![reamer](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@reamer](https://devforum.zoom.us/u/reamer)\
**Post date:** [September 29, 2020, 7:10am UTC](https://devforum.zoom.us/t/how-to-get-current-active-speaker/31280/3 "2020-09-29T07:10:55Z")

</div>

hello @jon.zoom

My test case is:  
user A joined via SDK, user B joined via Zoom Native APP, and only these 2 users in meeting, `onActiveSpeakerVideoUserChanged` was not triggered no matter who was speaking.  
Then user C joined via SDK, `onActiveSpeakerVideoUserChanged` was triggered correctly when someone spoke.

So is there any limitation for `onActiveSpeakerVideoUserChanged`? How it works currently?

Thank you

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 29, 2020, 4:20pm UTC](https://devforum.zoom.us/t/how-to-get-current-active-speaker/31280/4 "2020-09-29T16:20:55Z")

</div>

Hi @reamer, thanks for clarifying.

I was able to reproduce this behavior locally and will have to investigate whether this is intentional or is a bug and get back to you.

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 29, 2020, 10:40pm UTC](https://devforum.zoom.us/t/how-to-get-current-active-speaker/31280/5 "2020-09-29T22:40:03Z")

</div>

Hi @reamer, after looking into this further, we have determined that this is expected behavior.

When you are in a meeting containing X participants (self-inclusive), there will be X-1 possible targets for the currently active audio. Your own audio is not part of the pool of potentially active audio users because you do not hear your own audio played.

Keeping that in mind, when you join a meeting with one other participant, the pool of potentially active users consists of the other user only. When only one possible target exists, it is not logically possible for the user who is considered active to change to another user.

Now when a third user joins the meeting, the pool of non-self participants grows to two, allowing the active user to be updated between the two of them.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![reamer](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@reamer](https://devforum.zoom.us/u/reamer)\
**Post date:** [October 12, 2020, 10:02am UTC](https://devforum.zoom.us/t/how-to-get-current-active-speaker/31280/6 "2020-10-12T10:02:43Z")

</div>

hi @jon.zoom

Noted on above, thanks for your reply.

A supplement as I observed: if the third user leaves the meeting, the `onActiveSpeakerVideoUserChanged` can still be triggered correctly even if there are only 2 users again
