# Electron SDK: SpotlightVideo not working

**URL:** <https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350>\
**Category:** Electron\
**Created:** [February 2, 2021, 8:51pm UTC](https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350 "2021-02-02T20:51:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![desko27](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desko27/32/8296_2.png) [@desko27](https://devforum.zoom.us/u/desko27)\
**Post date:** [February 2, 2021, 8:51pm UTC](https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350/1 "2021-02-02T20:51:11Z")

</div>

**Description**  
The following method is not working when called on other participants as a Host:

- `zoomvideo.MeetingVideo_SpotlightVideo({ bSpotlight: true, userid: <id> })`

**Which version?**  
Latest Electron SDK v5.4.54802.0124 (running in macOS Big Sur)

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Download, build and run Zoom SDK Electron Demo in macOS Big Sur.
2. Join a meeting without login.
3. Test `zoomaudio.MeetingVideo_SpotlightVideo` with different User IDs.
4. Nothing happens and number `2` is always returned by the function, which seems to be `SDKERR_WRONG_USEAGE`.

**Additional context**  
While I can manually spotlight video of any user through the original Zoom client, SDK’s `zoomvideo.MeetingVideo_SpotlightVideo` function won’t work.

Thank you so much for your help in advance as well as for the effort of providing a way for us to make useful features through SDKs!

---

<div class="post-metadata">

**Author:** ![alexmayo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexmayo/32/27289_2.png) [@alexmayo](https://devforum.zoom.us/u/alexmayo)\
**Post date:** [February 2, 2021, 9:42pm UTC](https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350/2 "2021-02-02T21:42:41Z")

</div>

Hi @desko27,

Is the user that you are trying to pin broadcasting video?  
Only users who are broadcasting video can be pinned.

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![desko27](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desko27/32/8296_2.png) [@desko27](https://devforum.zoom.us/u/desko27)\
**Post date:** [February 3, 2021, 10:54am UTC](https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350/3 "2021-02-03T10:54:49Z")

</div>

Yes, all the users are broadcasting video. This is tested in a meeting with 5 users who are broadcasting video. I can spotlight them from the Zoom client, but not programatically.

---

<div class="post-metadata">

**Author:** ![desko27](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desko27/32/8296_2.png) [@desko27](https://devforum.zoom.us/u/desko27)\
**Post date:** [February 12, 2021, 11:59am UTC](https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350/4 "2021-02-12T11:59:27Z")

</div>

Any updates on this? It seems like there is an issue somewhere in the SDK and I cannot proceed adding a useful feature to our software without `MeetingVideo_SpotlightVideo` working properly.

Thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [February 25, 2021, 10:52pm UTC](https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350/5 "2021-02-25T22:52:48Z")

</div>

Hey @desko27,

Thanks for using the dev forum! SpotlightVideo now only works in the default Zoom UI. Are you using the default meeting UI or a custom meeting UI?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![logoforyouimake](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@logoforyouimake](https://devforum.zoom.us/u/logoforyouimake)\
**Post date:** [May 25, 2021, 4:07pm UTC](https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350/6 "2021-05-25T16:07:21Z")

</div>

HI I am trying to spotlight and or pin using  
the sample demo and it keeps returning error number 2  
any ideas why ?

---

<div class="post-metadata">

**Author:** ![stipoy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/stipoy/32/23111_2.png) [@stipoy](https://devforum.zoom.us/u/stipoy)\
**Post date:** [May 27, 2021, 3:16am UTC](https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350/7 "2021-05-27T03:16:59Z")

</div>

getting the same issue. using the demo so with the standard/ default Zoom UI.

---

<div class="post-metadata">

**Author:** ![logoforyouimake](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@logoforyouimake](https://devforum.zoom.us/u/logoforyouimake)\
**Post date:** [June 12, 2021, 3:45pm UTC](https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350/8 "2021-06-12T15:45:55Z")

</div>

@Michael_Condon any chance of helping us out on this ? thanks

---

<div class="post-metadata">

**Author:** ![buraakkhalifa](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@buraakkhalifa](https://devforum.zoom.us/u/buraakkhalifa)\
**Post date:** [July 9, 2021, 10:55am UTC](https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350/9 "2021-07-09T10:55:19Z")

</div>

It happened with me 2 months ago and it’ll automatically fixed[.](https://androidgta5.net/) I am still wonder how

---

<div class="post-metadata">

**Author:** ![logoforyouimake](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@logoforyouimake](https://devforum.zoom.us/u/logoforyouimake)\
**Post date:** [July 9, 2021, 2:49pm UTC](https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350/10 "2021-07-09T14:49:54Z")

</div>

I tried again and again even on different machines still not working … what is your set up ?

---

<div class="post-metadata">

**Author:** ![bemikhan](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@bemikhan](https://devforum.zoom.us/u/bemikhan)\
**Post date:** [July 10, 2021, 10:01am UTC](https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350/11 "2021-07-10T10:01:31Z")

</div>

i want a spotligtht video on [tile floors](https://rankingmom.com/best-cleaners-for-tile-floors/) topic. i need to sent it to students. we are facing too problems in covid-19

---

<div class="post-metadata">

**Author:** ![logoforyouimake](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@logoforyouimake](https://devforum.zoom.us/u/logoforyouimake)\
**Post date:** [July 26, 2021, 1:34pm UTC](https://devforum.zoom.us/t/electron-sdk-spotlightvideo-not-working/42350/12 "2021-07-26T13:34:28Z")

</div>

```auto
i want a spotligtht video on tile floors 1 topic. i need to sent it to students. we are facing too problems in covid-19

```

Er sorry you lost me
