# Unable to mute/unmute meeting bot

**URL:** <https://devforum.zoom.us/t/unable-to-mute-unmute-meeting-bot/117418>\
**Category:** Meeting SDK\
**Created:** [September 13, 2024, 10:17am UTC](https://devforum.zoom.us/t/unable-to-mute-unmute-meeting-bot/117418 "2024-09-13T10:17:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saranshabd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/saranshabd/32/63298_2.png) [@saranshabd](https://devforum.zoom.us/u/saranshabd)\
**Post date:** [September 13, 2024, 10:17am UTC](https://devforum.zoom.us/t/unable-to-mute-unmute-meeting-bot/117418/1 "2024-09-13T10:17:24Z")

</div>

I have created a Zoom bot to join meetings to send and receive audio, video streams. Right now, I am trying to achieve two things:

1. Mute the audio stream - the bot doesn’t need to speak
2. Unmute the video stream - the bot needs to send a video stream

I am unable to it.

These are my configurations when the bot joins a call:

```auto
ZOOM_SDK_NAMESPACE::JoinParam4WithoutLogin &withoutloginParam = joinParam.param.withoutloginuserJoin;
// ...
withoutloginParam.isVideoOff = false;
withoutloginParam.isAudioOff = true;
// ...
ZOOM_SDK_NAMESPACE::IAudioSettingContext *pAudioContext = m_pSettingService->GetAudioSettings();
if (pAudioContext)
{
    pAudioContext->EnableAutoJoinAudio(true);
}
ZOOM_SDK_NAMESPACE::IVideoSettingContext *pVideoContext = m_pSettingService->GetVideoSettings();
if (pVideoContext)
{
    pVideoContext->EnableAutoTurnOffVideoWhenJoinMeeting(false);
}
ZOOM_SDK_NAMESPACE::SDKError join_err = m_pMeetingService->Join(joinParam)

```

This is how I am trying to mute the audio:

```auto
IMeetingAudioController *meetingAudController = m_pMeetingService->GetMeetingAudioController();
auto my_user_id = m_pParticipantsController->GetMySelfUser()->GetUserID();
SDKError err = meetingAudController->MuteAudio(my_user_id, true);
if (err != SDKError::SDKERR_SUCCESS)
{
    printf("Error muting audio. SDKError code: %d\n", err);
    return;
}

```

And, here is how I am trying to unmute the video:

```auto
IMeetingVideoController *meetingController = m_pMeetingService->GetMeetingVideoController();
meetingController->UnmuteVideo();

```

Neither the audio is muted nor the video is unmuted.

And, I noticed something. My code gets stuck when I try to initialise the audio and video controllers:

```auto
IMeetingAudioController *meetingAudController = m_pMeetingService->GetMeetingAudioController();

```

When I say stuck, I mean that the code doesn’t even move to the next line.

Is this a permissions issue? Am I doing something wrong here? Can someone help?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 16, 2024, 8:47am UTC](https://devforum.zoom.us/t/unable-to-mute-unmute-meeting-bot/117418/2 "2024-09-16T08:47:14Z")

</div>

@saranshabd please tag me for response.

Is this windows or linux meeting sdk?

---

<div class="post-metadata">

**Author:** ![saranshabd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/saranshabd/32/63298_2.png) [@saranshabd](https://devforum.zoom.us/u/saranshabd)\
**Post date:** [September 16, 2024, 4:58pm UTC](https://devforum.zoom.us/t/unable-to-mute-unmute-meeting-bot/117418/3 "2024-09-16T16:58:06Z")

</div>

@chunsiong.zoom - This is the Linux SDK.

---

<div class="post-metadata">

**Author:** ![amanda-recallai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amanda-recallai/32/44747_2.png) [@amanda-recallai](https://devforum.zoom.us/u/amanda-recallai)\
**Post date:** [September 16, 2024, 10:13pm UTC](https://devforum.zoom.us/t/unable-to-mute-unmute-meeting-bot/117418/4 "2024-09-16T22:13:42Z")

</div>

Hey Shabd, if you’re struggling with managing audio and video streams for your Zoom bot, you might want to check out the [Recall.ai API](https://www.recall.ai/?utm_source=github&utm_medium=forum_answer&utm_campaign=MUTE_UNMUTE_MEETING_BOT_ISSUE&utm_content=Recall.ai_API).

It’s a simple 3rd party API that lets you use meeting bots to get raw audio/video/metadata from meetings without you needing to spend months to build, scale and maintain these bots.

Here are the API docs: [https://docs.recall.ai](https://docs.recall.ai/page/tutorials)
