# How do I capture the event where the user hides or disables their camera?

**URL:** <https://devforum.zoom.us/t/how-do-i-capture-the-event-where-the-user-hides-or-disables-their-camera/4772>\
**Category:** Android\
**Created:** [June 26, 2019, 7:29pm UTC](https://devforum.zoom.us/t/how-do-i-capture-the-event-where-the-user-hides-or-disables-their-camera/4772 "2019-06-26T19:29:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlapasa](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mlapasa/32/1129_2.png) [@mlapasa](https://devforum.zoom.us/u/mlapasa)\
**Post date:** [June 26, 2019, 7:29pm UTC](https://devforum.zoom.us/t/how-do-i-capture-the-event-where-the-user-hides-or-disables-their-camera/4772/1 "2019-06-26T19:29:20Z")

</div>

**Description**  
How do I capture the event where the user hides or enables their camera?

**Which version?**  
Version: 4.3.47200.0322

On the Bottom Navigation Bar, there are UI elements for toggling Audio and VIdeo feeds. How can I capture when a user is enabling their Camera? We want to have the camera turned off by default upon entering a Zoom meeting. For analytics purposes, we’d like to know when the user feels confident that they want to show their face.

---

<div class="post-metadata">

**Author:** ![Fred\_Luo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fred_luo/32/62_2.png) [@Fred\_Luo](https://devforum.zoom.us/u/Fred_Luo)\
**Post date:** [June 27, 2019, 1:42am UTC](https://devforum.zoom.us/t/how-do-i-capture-the-event-where-the-user-hides-or-disables-their-camera/4772/2 "2019-06-27T01:42:43Z")

</div>

Hi mlapasa

this api will turn off video. this code should call before join or start meeting.

ZoomSDK.getInstance().getMeetingSettingsHelper().setTurnOffMyVideoWhenJoinMeeting(true);

InMeetingServiceListener :onUserVideoStatusChanged(int userId) will callback when user video status changed. with the userId you can get InMeetingUserInfo.getVideoStatus().

VideoStatus.isSending() : true video on;false : video off.

---

<div class="post-metadata">

**Author:** ![mlapasa](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mlapasa/32/1129_2.png) [@mlapasa](https://devforum.zoom.us/u/mlapasa)\
**Post date:** [July 2, 2019, 3:59pm UTC](https://devforum.zoom.us/t/how-do-i-capture-the-event-where-the-user-hides-or-disables-their-camera/4772/3 "2019-07-02T15:59:57Z")

</div>

Hi Fred,

I have the onUserVideoStatusChanged() listener set up, however I am running into difficulty in obtaining an instance of InMeetingUserInfo to invoke getVIdeoStatus().

How do I get a reference to this object?

Thx,  
-mL

---

<div class="post-metadata">

**Author:** ![mlapasa](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mlapasa/32/1129_2.png) [@mlapasa](https://devforum.zoom.us/u/mlapasa)\
**Post date:** [July 2, 2019, 6:21pm UTC](https://devforum.zoom.us/t/how-do-i-capture-the-event-where-the-user-hides-or-disables-their-camera/4772/4 "2019-07-02T18:21:03Z")

</div>

Actually, I’ve been able to get the state of the camera via this call

> ZoomSDK.getInstance().inMeetingService.inMeetingVideoController.isMyVideoMuted

I check it when onUserVideoStatusChanged(userId: Long) is called

---

<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:** [July 17, 2019, 7:41pm UTC](https://devforum.zoom.us/t/how-do-i-capture-the-event-where-the-user-hides-or-disables-their-camera/4772/5 "2019-07-17T19:41:19Z")

</div>

Hi mL,  
Thanks for your reply. You can refer to the [https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/InMeetingUserInfo.html](https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/InMeetingUserInfo.html) for the details in the `InMeetingUserInfo` class. To use the `getVideoStatus` interface, you can do something like this:

```auto
ZoomSDK.getInstance().getInMeetingService().getMyUserInfo().getVideoStatus()

```

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:31pm UTC](https://devforum.zoom.us/t/how-do-i-capture-the-event-where-the-user-hides-or-disables-their-camera/4772/6 "2020-08-21T18:31:05Z")

</div>

Closed on August 21, 2020, 6:31pm UTC


