# Participants Cannot Unmute Video Once Muted

**URL:** <https://devforum.zoom.us/t/participants-cannot-unmute-video-once-muted/50039>\
**Category:** iOS\
**Created:** [May 11, 2021, 3:07pm UTC](https://devforum.zoom.us/t/participants-cannot-unmute-video-once-muted/50039 "2021-05-11T15:07:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbianchi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dbianchi/32/3122_2.png) [@dbianchi](https://devforum.zoom.us/u/dbianchi)\
**Post date:** [May 11, 2021, 3:07pm UTC](https://devforum.zoom.us/t/participants-cannot-unmute-video-once-muted/50039/1 "2021-05-11T15:07:23Z")

</div>

**Description**  
I am using the custom ui feature in the Zoom SDK but am having trouble with turning the camera on and off for participants. Below is a code snippet:

```auto
guard let `self` = self,
    let meetingService = MobileRTC.shared().getMeetingService(),
    meetingService.canUnmuteMyVideo() else
{
    return
}
            
let isSendingVideo = meetingService.isSendingMyVideo()
print("Is muted: \(isSendingVideo)")
            
let error = meetingService.muteMyVideo(!isSendingVideo)
print(error.rawValue)

```

When I first join a meeting, the camera is already on, then when I run this code I am able to mute my video. However, if I run this code snippet again, `isSendingMyVideo` is `false` yet my camera never turns back on. The `error` value is `0`.

Why am I unable to turn the camera back on?

The same problem happens when trying to toggle the microphone on and off except `isMyAudioMuted()` is never `true` even after calling `muteMyAudio(true)`

**Which iOS Client SDK version?**  
v5.5.12511.0421

**Smartphone (please complete the following information):**

- Device: iPhone XR
- OS: iOS 14.5.1

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 11, 2021, 7:13pm UTC](https://devforum.zoom.us/t/participants-cannot-unmute-video-once-muted/50039/2 "2021-05-11T19:13:25Z")

</div>

Hi @dbianchi, thanks for the post.

Sorry to hear you are experiencing issues with trying to unmute audio and video. Can you please let me know what the return value of [`canUnmuteMyVideo`](https://marketplacefront.zoom.us/sdk/meeting/ios/category_mobile_r_t_c_meeting_service_07_video_08.html#abd6dabccbb4cef2fd054ab7374375bb1) is in this scenario?

Thanks!

---

<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:** [June 11, 2021, 5:13am UTC](https://devforum.zoom.us/t/participants-cannot-unmute-video-once-muted/50039/3 "2021-06-11T05:13:25Z")

</div>

Closed on June 11, 2021, 5:13am UTC

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