# Black Screen between videos

**URL:** <https://devforum.zoom.us/t/black-screen-between-videos/58305>\
**Category:** Meeting SDK\
**Created:** [October 2, 2021, 7:39pm UTC](https://devforum.zoom.us/t/black-screen-between-videos/58305 "2021-10-02T19:39:15Z")\
**Posts on this page:** 3\
**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:** [October 2, 2021, 7:39pm UTC](https://devforum.zoom.us/t/black-screen-between-videos/58305/1 "2021-10-02T19:39:15Z")

</div>

**Description**  
I noticed that when I try to pin videos using PinUserVideoToFirstView(userID) function I always get black screen between videos. Is there a way to get rid of this black screen ?

**Which Desktop Meeting SDK version?**  
DeskTop Windows SDK v5.7.1.644

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
if (count\_participants \> 3)  
{  
for (int i = m\_currentPinUserId; i \< count\_participants; i++)  
{  
unsigned int user\_id = participants-\>GetItem(i);  
ZOOM\_SDK\_NAMESPACE::IUserInfo\* user\_info = participantsCtlr-\>GetUserByUserID(user\_id);

```
		if (this->CanSpotlightOrPin(user_id))
		{

```

// videoCtrl-\>UnPinAllVideosFromFirstView();

```
			videoCtrl->UnPinVideoFromFirstView(last_user_id);

			if (videoCtrl->PinVideoToFirstView(user_id) == ZOOM_SDK_NAMESPACE::SDKERR_SUCCESS)
				{
					m_currentPinUserId = i;
					last_user_id = user_id;
					// done
					status = true;
					break;
				}
		}
	}
}

```

**Screenshots**  
If applicable, add screenshots to help explain your problem.

**Device (please complete the following information):**  
Windows 10.  
Desktop

**Additional context**  
Add any other context about the problem here.

---

<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:** [October 4, 2021, 9:27pm UTC](https://devforum.zoom.us/t/black-screen-between-videos/58305/2 "2021-10-04T21:27:05Z")

</div>

Hey @Hong,

Thanks for using the dev forum!

I have responded on the other thread you have posted about this issue and will follow up there 🙂

Thanks!  
Michael

---

<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:** [October 4, 2021, 9:27pm UTC](https://devforum.zoom.us/t/black-screen-between-videos/58305/3 "2021-10-04T21:27:09Z")

</div>

Closed on October 4, 2021, 9:27pm UTC


