# MacSDK: how a host muteAudio when a prticipant join a ongoing meeting

**URL:** <https://devforum.zoom.us/t/macsdk-how-a-host-muteaudio-when-a-prticipant-join-a-ongoing-meeting/4281>\
**Category:** macOS\
**Created:** [May 16, 2019, 8:17am UTC](https://devforum.zoom.us/t/macsdk-how-a-host-muteaudio-when-a-prticipant-join-a-ongoing-meeting/4281 "2019-05-16T08:17:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangyx](https://avatars.discourse-cdn.com/v4/letter/w/3ab097/32.png) [@wangyx](https://devforum.zoom.us/u/wangyx)\
**Post date:** [May 16, 2019, 8:17am UTC](https://devforum.zoom.us/t/macsdk-how-a-host-muteaudio-when-a-prticipant-join-a-ongoing-meeting/4281/1 "2019-05-16T08:17:56Z")

</div>

hi zoom,  
in my condition: In an ongoing meeting ,the host wants force the participant mute audio when join the meeting.

is there the same api as the MobileRTC

thanks

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 16, 2019, 10:32pm UTC](https://devforum.zoom.us/t/macsdk-how-a-host-muteaudio-when-a-prticipant-join-a-ongoing-meeting/4281/2 "2019-05-16T22:32:25Z")

</div>

Hi wangyx,

Thanks for the post. If you would like to mute the participants, you can use the following method:

```auto
- (ZoomSDKError)actionMeetingWithCmd:(ActionMeetingCmd)cmd userID:(unsigned int)userID onScreen:(ScreenType)screen;

```

In the parameter `cmd`, pass the following:

```auto
ActionMeetingCmd_MuteAll

```

This will help you to mute the participant’s audio.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![chentkwg2019](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chentkwg2019/32/2393_2.png) [@chentkwg2019](https://devforum.zoom.us/u/chentkwg2019)\
**Post date:** [November 19, 2019, 6:51am UTC](https://devforum.zoom.us/t/macsdk-how-a-host-muteaudio-when-a-prticipant-join-a-ongoing-meeting/4281/3 "2019-11-19T06:51:51Z")

</div>

> [@carson.zoom](#):
>
> ```auto
> - (ZoomSDKError)actionMeetingWithCmd:(ActionMeetingCmd)cmd userID:(unsigned int)userID onScreen:(ScreenType)screen;
> 
> ```

actionMeetingWithCmd return 6 ，What should I do？why no permission

---

<div class="post-metadata">

**Author:** ![bella.tu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bella.tu/32/1227_2.png) [@bella.tu](https://devforum.zoom.us/u/bella.tu)\
**Post date:** [November 20, 2019, 2:26am UTC](https://devforum.zoom.us/t/macsdk-how-a-host-muteaudio-when-a-prticipant-join-a-ongoing-meeting/4281/4 "2019-11-20T02:26:50Z")

</div>

What are your parameters?

---

<div class="post-metadata">

**Author:** ![chentkwg2019](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chentkwg2019/32/2393_2.png) [@chentkwg2019](https://devforum.zoom.us/u/chentkwg2019)\
**Post date:** [November 20, 2019, 2:38am UTC](https://devforum.zoom.us/t/macsdk-how-a-host-muteaudio-when-a-prticipant-join-a-ongoing-meeting/4281/6 "2019-11-20T02:38:07Z")

</div>

parameter1: ActionMeetingCmd\_MuteAll  
parameter2: userId  
SDK version:4.4.56853.1110

---

<div class="post-metadata">

**Author:** ![chentkwg2019](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chentkwg2019/32/2393_2.png) [@chentkwg2019](https://devforum.zoom.us/u/chentkwg2019)\
**Post date:** [November 20, 2019, 3:02am UTC](https://devforum.zoom.us/t/macsdk-how-a-host-muteaudio-when-a-prticipant-join-a-ongoing-meeting/4281/7 "2019-11-20T03:02:01Z")

</div>

In meeting .Have you provided an API to mute yourself?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [November 20, 2019, 7:28pm UTC](https://devforum.zoom.us/t/macsdk-how-a-host-muteaudio-when-a-prticipant-join-a-ongoing-meeting/4281/8 "2019-11-20T19:28:54Z")

</div>

Hi [chentkwg2019](https://devforum.zoom.us/u/chentkwg2019),

Thanks for the reply. If you would like to mute yourself, you can use the same interface and pass 0 as your userID, please see the comment in the interface description:

 ![544893B0-CB7C-40CF-9A11-74FE492B5B5F](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/a22e4c4dc03f0c08a2e2f34e71f6358b5547495b.jpeg)

Hope this helps. Thanks!
