# How to request camera control with by sdk api

**URL:** <https://devforum.zoom.us/t/how-to-request-camera-control-with-by-sdk-api/4266>\
**Category:** iOS\
**Created:** [May 15, 2019, 1:57pm UTC](https://devforum.zoom.us/t/how-to-request-camera-control-with-by-sdk-api/4266 "2019-05-15T13:57:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![innovate](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@innovate](https://devforum.zoom.us/u/innovate)\
**Post date:** [May 15, 2019, 1:57pm UTC](https://devforum.zoom.us/t/how-to-request-camera-control-with-by-sdk-api/4266/1 "2019-05-15T13:57:06Z")

</div>

Hello  
i add my custom UIButton to Zoom UI.  
when i click my custom UIButton, Then I want to action “requst camera control” by ios sdk api  
but,i seem that there is no method at “MobileRTCMeetingService” of ios sdk

How to request camera control with user id by ios sdk api ?

and How to get event from the other’s “request camera control” by Delegete of ios sdk?

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

- Device: ipad
- OS: ios12

---

<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 15, 2019, 11:03pm UTC](https://devforum.zoom.us/t/how-to-request-camera-control-with-by-sdk-api/4266/2 "2019-05-15T23:03:47Z")

</div>

Hi innovate,

Thanks for using Zoom SDK. Do you mean you would like to ask the user for the camera permission after pressing your custom button?

In our iOS SDK, we do not have a method for requesting camera permission individually. As long as you have set up the camera permission description in the `info.plist` file, you should be fine with the camera permission. Once the meeting starts, and the video is triggered, if our SDK detects that the camera is not on and not yet being asked for a permission, our SDK will ask the user for the permission.

If you would like to ask for camera permission before the meeting, then you can do it without our SDK, the following links could be helpful:

- [https://developer.apple.com/documentation/avfoundation/cameras\_and\_media\_capture/requesting\_authorization\_for\_media\_capture\_on\_ios?language=objc](https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/requesting_authorization_for_media_capture_on_ios?language=objc)
- [https://stackoverflow.com/questions/26070393/is-there-a-way-to-ask-user-for-camera-access-after-they-have-already-denied-it-o](https://stackoverflow.com/questions/26070393/is-there-a-way-to-ask-user-for-camera-access-after-they-have-already-denied-it-o)
- [https://stackoverflow.com/questions/27646107/how-to-check-if-the-user-gave-permission-to-use-the-camera](https://stackoverflow.com/questions/27646107/how-to-check-if-the-user-gave-permission-to-use-the-camera)
- [https://developer.apple.com/documentation/avfoundation/cameras\_and\_media\_capture?language=objc](https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture?language=objc)
- [https://stackoverflow.com/questions/39631256/request-permission-for-camera-and-library-in-ios-10-info-plist](https://stackoverflow.com/questions/39631256/request-permission-for-camera-and-library-in-ios-10-info-plist)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![innovate](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@innovate](https://devforum.zoom.us/u/innovate)\
**Post date:** [May 16, 2019, 4:14am UTC](https://devforum.zoom.us/t/how-to-request-camera-control-with-by-sdk-api/4266/3 "2019-05-16T04:14:28Z")

</div>

Thank you reply

it is not difficult to request camera permission to iOS like info.plist

it is “request camera control” when open “Participants” in Zoom Meeting like the follow photo

 ![IMG_20190516_125610](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/a3e797b46070b5574a38261dc6b12245c080e694.jpeg)

When My custom UIButton is clicked, i want to request camera control with the other user id by ios sdk api

---

<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:10pm UTC](https://devforum.zoom.us/t/how-to-request-camera-control-with-by-sdk-api/4266/4 "2019-05-16T22:10:02Z")

</div>

Hi,

Thanks for the reply and the clarification. What kind of camera control are you looking for?

We have an interface to ask/request the participant/user to start video/camera:

```auto
askUserStartVideo

```

[https://zoom.github.io/zoom-sdk-ios/category\_mobile\_r\_t\_c\_meeting\_service\_07\_video\_08.html#aa4d28c13634f025d6371ea2597163251](https://zoom.github.io/zoom-sdk-ios/category_mobile_r_t_c_meeting_service_07_video_08.html#aa4d28c13634f025d6371ea2597163251)  
We also have an interface to stop the participant/user’s camera:

```auto
stopUserVideo

```

[https://zoom.github.io/zoom-sdk-ios/category\_mobile\_r\_t\_c\_meeting\_service\_07\_video\_08.html#aab328693e8dfba7af5071fe19af035f0](https://zoom.github.io/zoom-sdk-ios/category_mobile_r_t_c_meeting_service_07_video_08.html#aab328693e8dfba7af5071fe19af035f0)  
We have a bunch of options that controls the videos/cameras, you can find more info here: [https://zoom.github.io/zoom-sdk-ios/category\_mobile\_r\_t\_c\_meeting\_service\_07\_video\_08.html#aab328693e8dfba7af5071fe19af035f0](https://zoom.github.io/zoom-sdk-ios/category_mobile_r_t_c_meeting_service_07_video_08.html#aab328693e8dfba7af5071fe19af035f0)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:18pm UTC](https://devforum.zoom.us/t/how-to-request-camera-control-with-by-sdk-api/4266/5 "2020-08-21T18:18:22Z")

</div>


