# PinVideo not working

**URL:** <https://devforum.zoom.us/t/pinvideo-not-working/50667>\
**Category:** Electron\
**Created:** [May 20, 2021, 11:05am UTC](https://devforum.zoom.us/t/pinvideo-not-working/50667 "2021-05-20T11:05:06Z")\
**Posts on this page:** 11\
**Page:** 1

<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 20, 2021, 11:05am UTC](https://devforum.zoom.us/t/pinvideo-not-working/50667/1 "2021-05-20T11:05:06Z")

</div>

**Description**  
Running PinVideo on the Electron SDK, even in the demo app, doesn’t work.  
Return error code 2.

let opts = {  
bPin: true,  
bFirstView: true,  
userid:   
}  
let ret = zoomvideo.MeetingVideo\_PinVideo(opts);

**Which Electron Client SDK version?**  
Current Electron SDK version

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

1. Start a meeting in the Electron SDK demo
2. Get your userid with GetParticipantsList(), you are [0]
3. use that userid for the PinVideo function, doesn’t work. Return error code 2. Mute/ unmute using the same userid works so the userid is correct.

This is using the Demo, and the standard UI. not using a custom 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:** [May 22, 2021, 2:34pm UTC](https://devforum.zoom.us/t/pinvideo-not-working/50667/2 "2021-05-22T14:34:57Z")

</div>

I am having exactly the same Problem

---

<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 23, 2021, 12:30am UTC](https://devforum.zoom.us/t/pinvideo-not-working/50667/3 "2021-05-23T00:30:37Z")

</div>

SpotlightVideo has the same issue too.

---

<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 23, 2021, 8:46am UTC](https://devforum.zoom.us/t/pinvideo-not-working/50667/4 "2021-05-23T08:46:48Z")

</div>

Yes I read somewhere that option spotlight had been removed from from the SDK’s I hope it not the same for electron and pinning option

---

<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 23, 2021, 4:25pm UTC](https://devforum.zoom.us/t/pinvideo-not-working/50667/5 "2021-05-23T16:25:59Z")

</div>

Oh that’s not good. I really need either spotlight or at least pin video in the app I’m  
making. Otherwise, I practically wasted my time developing the rest of the features. Hope somebody from Zoom can confirm if they should still work.

---

<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 8, 2021, 7:19pm UTC](https://devforum.zoom.us/t/pinvideo-not-working/50667/6 "2021-06-08T19:19:14Z")

</div>

hi there , have you made and advances with this ?

---

<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:** [June 9, 2021, 2:31am UTC](https://devforum.zoom.us/t/pinvideo-not-working/50667/7 "2021-06-09T02:31:48Z")

</div>

none yet. still the same error.

---

<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 22, 2021, 5:28pm UTC](https://devforum.zoom.us/t/pinvideo-not-working/50667/8 "2021-06-22T17:28:15Z")

</div>

[@Zoom\_Staff](https://devforum.zoom.us/groups/zoom_staff) any help on this ?

---

<div class="post-metadata">

**Author:** ![linkin](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@linkin](https://devforum.zoom.us/u/linkin)\
**Post date:** [June 30, 2021, 10:01am UTC](https://devforum.zoom.us/t/pinvideo-not-working/50667/9 "2021-06-30T10:01:23Z")

</div>

Try to install it again[.](https://ottomtech.com/) It worked for me.

---

<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 30, 2021, 10:04am UTC](https://devforum.zoom.us/t/pinvideo-not-working/50667/10 "2021-06-30T10:04:51Z")

</div>

I have done this a few times I will try again … are you using the electron sdk for with a mac and if so what version ?

---

<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:** [July 30, 2021, 8:05pm UTC](https://devforum.zoom.us/t/pinvideo-not-working/50667/11 "2021-07-30T20:05:42Z")

</div>

Closed on July 30, 2021, 8:05pm UTC

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