# SDKERR\_WRONG\_USEAGE on SwtichToAcitveSpeaker

**URL:** <https://devforum.zoom.us/t/sdkerr-wrong-useage-on-swtichtoacitvespeaker/1438>\
**Category:** Windows\
**Created:** [July 16, 2018, 10:54pm UTC](https://devforum.zoom.us/t/sdkerr-wrong-useage-on-swtichtoacitvespeaker/1438 "2018-07-16T22:54:09Z")\
**Posts on this page:** 6\
**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 16, 2018, 10:54pm UTC](https://devforum.zoom.us/t/sdkerr-wrong-useage-on-swtichtoacitvespeaker/1438/1 "2018-07-16T22:54:09Z")

</div>

I’m getting SDKERR\_WRONG\_USEAGE when switching to active speaker mode. I always get this error no matter what I do. Please advise how to properly call.

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 17, 2018, 12:40am UTC](https://devforum.zoom.us/t/sdkerr-wrong-useage-on-swtichtoacitvespeaker/1438/2 "2018-07-17T00:40:08Z")

</div>

hi,

thanks for your feedback.&nbsp;

did you call this api&nbsp;ZOOM\_SDK\_NAMESPACE.IMeetingUIController.SwtichToAcitveSpeaker?

if you are already in the activespeaker mode, you will get the&nbsp;SDKERR\_WRONG\_USEAGE .

please help to double check.

thanks

Dats

---

<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 17, 2018, 12:47pm UTC](https://devforum.zoom.us/t/sdkerr-wrong-useage-on-swtichtoacitvespeaker/1438/3 "2018-07-17T12:47:04Z")

</div>

Hi Dats,

Yes, I am calling&nbsp;&nbsp;ZOOM\_SDK\_NAMESPACE.IMeetingUIController.SwtichToAcitveSpeaker.&nbsp;Thanks for the information, I will try to confirm this is the behavior I see.

If there is a user pinned, will&nbsp;SwtichToAcitveSpeaker unpin the user, or should I do this separately?

Feature request:&nbsp;it would be nice to be able to query the interface to get the current mode. I notice there is a&nbsp;SDKMeetingUIType defined but not used in the API.

Thanks,

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 17, 2018, 7:25pm UTC](https://devforum.zoom.us/t/sdkerr-wrong-useage-on-swtichtoacitvespeaker/1438/4 "2018-07-17T19:25:35Z")

</div>

I understand this better now. When using the Zoom client, after pinning a user it is necessary to select “Switch to Active Speaker” to resume active speaker mode. However, when using the Zoom SDK, after pinning a user it is simply necessary to unpin the user using PinVideo (with pin = false) to resume active speaker mode. Everything is working now. Thanks for the help.

Bill

&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:56pm UTC](https://devforum.zoom.us/t/sdkerr-wrong-useage-on-swtichtoacitvespeaker/1438/5 "2021-09-20T20:56:53Z")

</div>

Closing as solved.

-Tommy

---

<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:56pm UTC](https://devforum.zoom.us/t/sdkerr-wrong-useage-on-swtichtoacitvespeaker/1438/6 "2021-09-20T20:56:55Z")

</div>

Closed on September 20, 2021, 8:56pm UTC


