# drawParticipant in Camera Mode returning an error

**URL:** <https://devforum.zoom.us/t/drawparticipant-in-camera-mode-returning-an-error/71107>\
**Category:** Zoom Apps\
**Created:** [June 24, 2022, 11:03pm UTC](https://devforum.zoom.us/t/drawparticipant-in-camera-mode-returning-an-error/71107 "2022-06-24T23:03:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vandalayindustries](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vandalayindustries/32/39002_2.png) [@vandalayindustries](https://devforum.zoom.us/u/vandalayindustries)\
**Post date:** [June 24, 2022, 11:03pm UTC](https://devforum.zoom.us/t/drawparticipant-in-camera-mode-returning-an-error/71107/1 "2022-06-24T23:03:47Z")

</div>

As [per the layers documentation](https://marketplace.zoom.us/docs/zoom-apps/guides/layers-manipulating-ui) in Zoom Apps, I am trying to draw a participant while in camera mode.

Steps to reproduce:

1. Start the rendering context in camera mode:

```auto
await zoomSdk.runRenderingContext({
    view: 'camera', 
    defaultCutout: 'rectangle'
});

```

1. Attempt to draw the participant, eg:

```auto
await zoomSdk.drawParticipant({
    x: '10', y: '10', width: '100', height: '100', zIndex:'1'
})

```

This results in the following console error:

```auto
Error: The Zoom client encountered an error while processing the request!
ZoomApiError — sdk.es.js:131
(anonymous function) — sdk.es.js:885
(anonymous function) — sdk.es.js:842

```

Is something missing from the documentation, or is there a bug with this feature?

Thanks!

---

<div class="post-metadata">

**Author:** ![Robert.Wallis](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/robert.wallis/32/38438_2.png) [@Robert.Wallis](https://devforum.zoom.us/u/Robert.Wallis)\
**Post date:** [June 25, 2022, 12:15am UTC](https://devforum.zoom.us/t/drawparticipant-in-camera-mode-returning-an-error/71107/2 "2022-06-25T00:15:54Z")

</div>

Please be sure to include the participantUUID paramater in drawParticipant. Thanks:  
[https://appssdk.zoom.us/classes/ZoomSdk.ZoomSdk-1.html#drawParticipant](https://appssdk.zoom.us/classes/ZoomSdk.ZoomSdk-1.html#drawParticipant)

This can be found in the getUserContext() API.

---

<div class="post-metadata">

**Author:** ![vandalayindustries](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vandalayindustries/32/39002_2.png) [@vandalayindustries](https://devforum.zoom.us/u/vandalayindustries)\
**Post date:** [June 25, 2022, 8:17pm UTC](https://devforum.zoom.us/t/drawparticipant-in-camera-mode-returning-an-error/71107/3 "2022-06-25T20:17:46Z")

</div>

Thanks! You might want to update the “usage example” on the layers documentation page as it is missing this. Appreciate the help!

---

<div class="post-metadata">

**Author:** ![coreyhobbs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/coreyhobbs/32/36605_2.png) [@coreyhobbs](https://devforum.zoom.us/u/coreyhobbs)\
**Post date:** [June 27, 2022, 5:26pm UTC](https://devforum.zoom.us/t/drawparticipant-in-camera-mode-returning-an-error/71107/5 "2022-06-27T17:26:22Z")

</div>

Opened a ticket to get this added to the docs for camera mode
