# \[JS SDK\] onActiveSpeakerChange Trigger Criteria

**URL:** <https://devforum.zoom.us/t/js-sdk-onactivespeakerchange-trigger-criteria/66791>\
**Category:** Zoom Apps\
**Created:** [March 31, 2022, 4:14pm UTC](https://devforum.zoom.us/t/js-sdk-onactivespeakerchange-trigger-criteria/66791 "2022-03-31T16:14:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhil2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nikhil2/32/36522_2.png) [@nikhil2](https://devforum.zoom.us/u/nikhil2)\
**Post date:** [March 31, 2022, 4:14pm UTC](https://devforum.zoom.us/t/js-sdk-onactivespeakerchange-trigger-criteria/66791/1 "2022-03-31T16:14:24Z")

</div>

Hey there,

I’ve been testing the onActiveSpeakerChange event in the Zoom Apps JS SDK and found that it inconsistently fires based on a test that I performed with myself on a zoom call from two separate clients.

It’s unclear whether active speaker changes are registered when there are only two people on in a meeting.

Does anyone know the conditions under which a handler is triggered for onActiveSpeakerChange?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 4, 2022, 7:52pm UTC](https://devforum.zoom.us/t/js-sdk-onactivespeakerchange-trigger-criteria/66791/2 "2022-04-04T19:52:19Z")

</div>

Hey @nikhil2,

Thank you for reaching out to the Zoom Developer Forum. To make sure I understand, you’re seeing that when there are \> 2 participants the onActiveSpeakerChange event doesn’t fire?

Can you share the scope of code where you set up this event listener?

Thanks,  
Max
