# Video State not allowed in guest mode

**URL:** <https://devforum.zoom.us/t/video-state-not-allowed-in-guest-mode/89395>\
**Category:** Zoom Apps\
**Created:** [May 31, 2023, 5:59pm UTC](https://devforum.zoom.us/t/video-state-not-allowed-in-guest-mode/89395 "2023-05-31T17:59:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![henry2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/henry2/32/20443_2.png) [@henry2](https://devforum.zoom.us/u/henry2)\
**Post date:** [May 31, 2023, 5:59pm UTC](https://devforum.zoom.us/t/video-state-not-allowed-in-guest-mode/89395/1 "2023-05-31T17:59:13Z")

</div>

The SDK call **getVideoState** is not available to apps in guest mode.

It is useful to know if the video is on or off so for **drawWebView** can be used. I found that detecting whether the camera is on or off helps with **drawWebView**. Here is my logic

- On app start detect if “inCamera”
- If “InCamera” use **getVideoState** to see if camera is on, if so then draw the web view
- Use onMyMediaChange to detect if user turns off or on their camera. If it is turned on then draw web view

Is this an inconsistency in the SDK?
