# Which thread should execute the muteMyVideo method?

**URL:** <https://devforum.zoom.us/t/which-thread-should-execute-the-mutemyvideo-method/88290>\
**Category:** iOS\
**Created:** [May 12, 2023, 2:20am UTC](https://devforum.zoom.us/t/which-thread-should-execute-the-mutemyvideo-method/88290 "2023-05-12T02:20:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![t.yamamoto](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/t.yamamoto/32/39167_2.png) [@t.yamamoto](https://devforum.zoom.us/u/t.yamamoto)\
**Post date:** [May 12, 2023, 2:20am UTC](https://devforum.zoom.us/t/which-thread-should-execute-the-mutemyvideo-method/88290/1 "2023-05-12T02:20:10Z")

</div>

**Description**  
Please tell me the correct thread to run when executing the muteMyVideo method of MobileRTCMeetingService.

**Which iOS Meeting SDK version?**  
v5.13.10.7064

**To Reproduce(If applicable)**  
If you call the muteMyVideo method of MobileRTCMeetingService on the main thread when the camera is on, you will receive a warning.

```auto
dispatch_async(dispatch_get_main_queue(), ^{
  [[[MobileRTC sharedRTC] getMeetingService] muteMyVideo:NO];
});
// -[AVCaptureSession startRunning] should be called from background thread. Calling it on the main thread can lead to UI unresponsiveness

```

A warning will be displayed if the MobileRTCMeetingService.muteMyVideo() method is executed on a background thread when the camera is OFF.

```auto
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
  [[[MobileRTC sharedRTC] getMeetingService] muteMyVideo:NO];
});
// -[UIApplication delegate] must be used from main thread only

```

**Screenshots**

 ![alert1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/d/fd6c46ba320fdd32252feb2ae4e164cd7bfe8d1c.png)  
 ![alert2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/e/ce565a34be46ed655c0643a12757be0462926353.png)

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

- Device: iPhone 11 Max Pro
- OS: 16.4.1 (a)

---

<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, 2023, 12:20pm UTC](https://devforum.zoom.us/t/which-thread-should-execute-the-mutemyvideo-method/88290/2 "2023-06-11T12:20:43Z")

</div>

Closed on June 11, 2023, 12:20pm UTC

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