# UnSpotlightAllVideos function not working in SDK Meeting windows-5.10.3.4884

**URL:** <https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944>\
**Category:** Windows\
**Created:** [May 13, 2022, 3:21pm UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944 "2022-05-13T15:21:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hong](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hong/32/31541_2.png) [@Hong](https://devforum.zoom.us/u/Hong)\
**Post date:** [May 13, 2022, 3:21pm UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944/1 "2022-05-13T15:21:51Z")

</div>

**Description**  
UnSpotlightAllVideos() function not working

**Which Windows Meeting SDK version?**  
5.10.3.4884

**To Reproduce(If applicable)**  
Programmatically, worked fine with older versions up until Version 5.10.3.4884 stops working

I am programming autospotlight function  
ZOOM\_SDK\_NAMESPACE::IMeetingVideoController\* videoCtrl = pMeetingService-\>GetMeetingVideoController();  
videoCtrl-\>UnSpotlightAllVideos();  
if (videoCtrl-\>SpotlightVideo(user\_id) == ZOOM\_SDK\_NAMESPACE::SDKERR\_SUCCESS)  
{  
#endif  
m\_currentSpotlightUserId = i;

```
				if (m_autoSpotlightOn)
				{
					ClearSpotlightTimer();
					SetSpotlightTimer();
				}
				// done
				status = true;
				break;
			}

```

Previously version worked fine.

Could you look into this?

Hong

---

<div class="post-metadata">

**Author:** ![Hong](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hong/32/31541_2.png) [@Hong](https://devforum.zoom.us/u/Hong)\
**Post date:** [May 14, 2022, 1:02am UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944/2 "2022-05-14T01:02:44Z")

</div>

I went to retest all the old versions. The only version works is zoom-sdk-windows-5.9.3.3191.

Hong

---

<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:** [May 17, 2022, 8:10pm UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944/3 "2022-05-17T20:10:33Z")

</div>

Hi @Hong,

Can you please clarify what you mean when you say it isn’t working? Are you seeing a specific error, or is the method returning success with no effect?

Thanks!

---

<div class="post-metadata">

**Author:** ![Hong](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hong/32/31541_2.png) [@Hong](https://devforum.zoom.us/u/Hong)\
**Post date:** [May 17, 2022, 8:25pm UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944/4 "2022-05-17T20:25:28Z")

</div>

When I run zoom with my account login, I can share “my Zoom Window Destop” just fine. I.e. I have my Zoom Gallery view on my desktop and Everyone will see my sharing gallery view.

I am trying the same thing with the SDK, evenone only see the background of my desktop, not the Gallery View.

Hong

---

<div class="post-metadata">

**Author:** ![Hong](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hong/32/31541_2.png) [@Hong](https://devforum.zoom.us/u/Hong)\
**Post date:** [May 17, 2022, 8:26pm UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944/5 "2022-05-17T20:26:06Z")

</div>

Jon,  
It seems to me that you are not familiar with this feather of zoom.

Hong

---

<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:** [May 20, 2022, 7:27pm UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944/6 "2022-05-20T19:27:25Z")

</div>

Hi @Hong,

As mentioned in my previous reply, we need more information before we can assist. Just saying that something doesn’t work is not adequate, as there are multiple failure points. Please let me know if you need assistance with identifying and communicating what exactly is not working with regard to this feature and I’ll be happy to help. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![Hong](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hong/32/31541_2.png) [@Hong](https://devforum.zoom.us/u/Hong)\
**Post date:** [May 22, 2022, 2:17am UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944/7 "2022-05-22T02:17:22Z")

</div>

Hey Jon,

There are too many issue with the windows SDK lately.

1. unSpotlightUsersVideo
2. UnSpotlightUserVideo

Are not working progammatically i.e. when I spotlight a participant, then i try to remove that participant before I spotlight the next participant. the result is the next participant added to the existing spotlighted participants.

---

<div class="post-metadata">

**Author:** ![Hong](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hong/32/31541_2.png) [@Hong](https://devforum.zoom.us/u/Hong)\
**Post date:** [May 22, 2022, 2:25am UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944/8 "2022-05-22T02:25:58Z")

</div>

program does not report any error, but the behavior of unspotlightallvideo() does not remove the spotlighted video.

---

<div class="post-metadata">

**Author:** ![Hong](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hong/32/31541_2.png) [@Hong](https://devforum.zoom.us/u/Hong)\
**Post date:** [May 22, 2022, 2:34am UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944/9 "2022-05-22T02:34:38Z")

</div>

The function unspotlightallvideo() return sussess but the spotlighted video was not removed.

---

<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:** [May 24, 2022, 6:44pm UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944/10 "2022-05-24T18:44:38Z")

</div>

Hi @Hong,

I was not able to reproduce the behavior you are seeing. Removing individual users from the spotlight or all users programmatically works as expected. Let’s try to narrow down where our implementations differ. Can you please provide context around when exactly you are calling `UnSpotlightAllVideos`?

Thanks!

---

<div class="post-metadata">

**Author:** ![Hong](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hong/32/31541_2.png) [@Hong](https://devforum.zoom.us/u/Hong)\
**Post date:** [May 24, 2022, 9:04pm UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944/11 "2022-05-24T21:04:40Z")

</div>

Hi Jon,  
Here is my code. I retested all versions and found it worked fine with 5.9.3.3191. All versions after this version UnSpotlightAllVideos() have no effect. i.e. it does not remove the spotlighted user.  
In results, users are kept added when this function is called.

boolean CSDKLoggedInUIMgr::SpotlightUserID(unsigned int user\_id, int Index)  
{

boolean status = false;  
ZOOM\_SDK\_NAMESPACE::IMeetingService\* pMeetingService = SDKInterfaceWrap::GetInst().GetMeetingService();  
if (!pMeetingService)  
return status;  
ZOOM\_SDK\_NAMESPACE::IMeetingVideoController\* videoCtrl = pMeetingService-\>GetMeetingVideoController();  
if (!videoCtrl)  
return status;

videoCtrl-\>UnSpotlightAllVideos(); // remove previously spotlighted user  
if (videoCtrl-\>SpotlightVideo(user\_id) == ZOOM\_SDK\_NAMESPACE::SDKERR\_SUCCESS)  
{  
{  
RegAttendeesList[Index].spotlightcounter++;  
}  
status = true;  
start\_PinValidUsertimer(); // 5 seconds timer  
}  
return status;  
}

---

<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:** [May 26, 2022, 8:13pm UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944/12 "2022-05-26T20:13:52Z")

</div>

Hi @Hong,

My testing was done on the latest version of the SDK (5.10.3), so this seems to be an issue with your implementation and does not appear to be a bug in the SDK. The code snippet you’ve provided does not give me enough context to know when exactly it is being executed. Can you please provide that information?

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:** [June 26, 2022, 6:14am UTC](https://devforum.zoom.us/t/unspotlightallvideos-function-not-working-in-sdk-meeting-windows-5-10-3-4884/68944/13 "2022-06-26T06:14:52Z")

</div>

Closed on June 26, 2022, 6:14am UTC

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