# SDKERR\_WRONG\_USEAGE on PinVideo

**URL:** <https://devforum.zoom.us/t/sdkerr-wrong-useage-on-pinvideo/1421>\
**Category:** Windows\
**Created:** [July 8, 2018, 7:46pm UTC](https://devforum.zoom.us/t/sdkerr-wrong-useage-on-pinvideo/1421 "2018-07-08T19:46:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_Gardner](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@Bill\_Gardner](https://devforum.zoom.us/u/Bill_Gardner)\
**Post date:** [July 8, 2018, 7:46pm UTC](https://devforum.zoom.us/t/sdkerr-wrong-useage-on-pinvideo/1421/1 "2018-07-08T19:46:29Z")

</div>

I’m having trouble reliably pinning users with the SDK. I discovered after some experimentation that PinVideo always returns&nbsp;SDKERR\_WRONG\_USEAGE when there are fewer than three users joined. I note that the regular Zoom UI allows pinning with only two users joined. But even if I wait for at least three users to join, the SDK sometimes refuses to pin the video, returning SDKERR\_WRONG\_USEAGE. The userID is correct and the user has already joined.

Am I missing something? What conditions can cause SDKERR\_WRONG\_USEAGE when pinning?

Thanks,

Bill

&nbsp;

---

<div class="post-metadata">

**Author:** ![dats\_liao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dats_liao/32/464_2.png) [@dats\_liao](https://devforum.zoom.us/u/dats_liao)\
**Post date:** [July 9, 2018, 11:59am UTC](https://devforum.zoom.us/t/sdkerr-wrong-useage-on-pinvideo/1421/2 "2018-07-09T11:59:48Z")

</div>

hi Bill

please help to double check the user you want to pin sending video or not?&nbsp;

if he don’t send video, we don’t support to pin.

thanks

dats.

---

<div class="post-metadata">

**Author:** ![Bill\_Gardner1](https://avatars.discourse-cdn.com/v4/letter/b/e36b37/32.png) [@Bill\_Gardner1](https://devforum.zoom.us/u/Bill_Gardner1)\
**Post date:** [July 10, 2018, 10:19pm UTC](https://devforum.zoom.us/t/sdkerr-wrong-useage-on-pinvideo/1421/3 "2018-07-10T22:19:52Z")

</div>

Thanks Dats. I suspected that it was necessary for the other user to be sending video. However I’m getting WRONG\_USEAGE errors even when the user is sending video. It seems like I have to first be in gallery mode (not active speaker). But even if I’m careful I’m still getting the errors. Are there any other details I should be aware of?

I’m pinning as soon as I get the onUserJoin notification for the user that I want to pin. Do I have to wait a while?

Thanks for any help.

Bill

&nbsp;

---

<div class="post-metadata">

**Author:** ![Bill\_Gardner](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@Bill\_Gardner](https://devforum.zoom.us/u/Bill_Gardner)\
**Post date:** [July 12, 2018, 9:34pm UTC](https://devforum.zoom.us/t/sdkerr-wrong-useage-on-pinvideo/1421/4 "2018-07-12T21:34:43Z")

</div>

Yes, the pinning was failing because the video had not started. It was necessary to handle onUserVideoStatusChange. That seems to have fixed it. Thanks!

&nbsp;

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [September 20, 2021, 8:57pm UTC](https://devforum.zoom.us/t/sdkerr-wrong-useage-on-pinvideo/1421/5 "2021-09-20T20:57:23Z")

</div>

Closing as solved.

-Tommy
