# onSpotlightVideoUserChange array not correct on first user spotlit

**URL:** <https://devforum.zoom.us/t/onspotlightvideouserchange-array-not-correct-on-first-user-spotlit/52825>\
**Category:** macOS\
**Created:** [June 21, 2021, 2:26pm UTC](https://devforum.zoom.us/t/onspotlightvideouserchange-array-not-correct-on-first-user-spotlit/52825 "2021-06-21T14:26:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashgreen](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@ashgreen](https://devforum.zoom.us/u/ashgreen)\
**Post date:** [June 21, 2021, 2:26pm UTC](https://devforum.zoom.us/t/onspotlightvideouserchange-array-not-correct-on-first-user-spotlit/52825/1 "2021-06-21T14:26:45Z")

</div>

**Description**  
onSpotlightVideoUserChange array not correct on first user spotlit

**Which macOS Client SDK version?**  
v5.5.12511.0420

**To Reproduce**  
Steps to reproduce the behavior:

1. Spotlight a user. Array returned by onSpotlightVideoUserChange is nil.
2. Add spotlight another user. Array now contains both spotlit users.
3. Remove second user spotlit. Array is now correct and returns the single spotlit user.

**Devices:**

- Device 1: Mac Mini M1
- OS: macOS Big Sur 11.3
- Device 2: Macbook Pro 2017 15 inch
- OS: macOS Mojave 10.14.6

---

<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:** [June 21, 2021, 8:52pm UTC](https://devforum.zoom.us/t/onspotlightvideouserchange-array-not-correct-on-first-user-spotlit/52825/2 "2021-06-21T20:52:25Z")

</div>

Hi @ashgreen, thanks for using our SDK.

Please provide the following information so that we can investigate further:

- Are you using the default UI or custom UI?
- If using the default UI, are you spotlighting users programmatically or through UI input?
- If spotlighting programmatically, please provide a code snippet showing how you are spotlighting and include the return value of the spotlight method you are seeing.

Thanks!

---

<div class="post-metadata">

**Author:** ![ashgreen](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@ashgreen](https://devforum.zoom.us/u/ashgreen)\
**Post date:** [June 27, 2021, 12:55pm UTC](https://devforum.zoom.us/t/onspotlightvideouserchange-array-not-correct-on-first-user-spotlit/52825/3 "2021-06-27T12:55:19Z")

</div>

- This is using the default UI
- Users are spotlit from a separate instance of the vanilla Zoom client

---

<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:** [June 28, 2021, 8:15pm UTC](https://devforum.zoom.us/t/onspotlightvideouserchange-array-not-correct-on-first-user-spotlit/52825/4 "2021-06-28T20:15:10Z")

</div>

Hi @ashgreen,

Thanks for clarifying. I have not been able to reproduce this with the below steps. Please let me know if I am missing anything.

1. Start a meeting with the Zoom client
2. Join the meeting with one SDK instance and at least one other participant
3. From the host’s device on the Zoom client, spotlight one user
4. Observe onSpotlightVideoUserChange callback with an array of one participant

Thanks!

---

<div class="post-metadata">

**Author:** ![ashgreen](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@ashgreen](https://devforum.zoom.us/u/ashgreen)\
**Post date:** [July 1, 2021, 8:45pm UTC](https://devforum.zoom.us/t/onspotlightvideouserchange-array-not-correct-on-first-user-spotlit/52825/5 "2021-07-01T20:45:05Z")

</div>

Yes that is the correct sequence to reproduce.

It does seem to be intermittent whether the array is correct. It has occurred on multiple machines for separate users and different versions of macOS.

It also happens when multiple people are spotlit, then each user is unspotlit in turn, giving the correct array of users, until only one person is spotlit, at which point it will return a null array.  
Again this is intermittent.

---

<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:** [July 2, 2021, 6:53pm UTC](https://devforum.zoom.us/t/onspotlightvideouserchange-array-not-correct-on-first-user-spotlit/52825/6 "2021-07-02T18:53:54Z")

</div>

Hi @ashgreen,

After several attempts, I have not been able to reproduce this behavior. How frequently are you able to reproduce this? Are you able to reproduce in the sample app as well?

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 2, 2021, 4:54am UTC](https://devforum.zoom.us/t/onspotlightvideouserchange-array-not-correct-on-first-user-spotlit/52825/7 "2021-08-02T04:54:48Z")

</div>

Closed on August 2, 2021, 4:54am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
