# I want to display Timer or clock on zoom video

**URL:** <https://devforum.zoom.us/t/i-want-to-display-timer-or-clock-on-zoom-video/92922>\
**Category:** Zoom Apps\
**Created:** [August 4, 2023, 6:20am UTC](https://devforum.zoom.us/t/i-want-to-display-timer-or-clock-on-zoom-video/92922 "2023-08-04T06:20:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommmyy890](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommmyy890/32/50306_2.png) [@tommmyy890](https://devforum.zoom.us/u/tommmyy890)\
**Post date:** [August 4, 2023, 6:20am UTC](https://devforum.zoom.us/t/i-want-to-display-timer-or-clock-on-zoom-video/92922/1 "2023-08-04T06:20:40Z")

</div>

Hi, I want to make an app that provides a simple interface for a user to set hours and minutes on a countdown timer during a Zoom meeting. Once the countdown is set and started, a small clock overlay that displays the countdown timer would appear to reside in the corner of the meeting window. so i just need help with how can i display the timer on Zoom video. like the Timer Zoom app does which is listed on the marketplace. so currently i can display text, and images through setVirtualForeground but I am unable to display a react component like a timer. Let me know if this makes sense, thanks!

---

<div class="post-metadata">

**Author:** ![tommmyy890](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommmyy890/32/50306_2.png) [@tommmyy890](https://devforum.zoom.us/u/tommmyy890)\
**Post date:** [August 19, 2023, 7:55pm UTC](https://devforum.zoom.us/t/i-want-to-display-timer-or-clock-on-zoom-video/92922/2 "2023-08-19T19:55:46Z")

</div>

@MaxM@Robert.Wallis Hi guys please help if possible 🙂

---

<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:** [August 21, 2023, 4:18pm UTC](https://devforum.zoom.us/t/i-want-to-display-timer-or-clock-on-zoom-video/92922/3 "2023-08-21T16:18:07Z")

</div>

> [@tommmyy890](#):
>
> like the Timer Zoom app does which is listed on the marketplace. so currently i can display text, and images through setVirtualForeground but I am unable to display a react component like a timer.

Yes that’s right. Zoom’s Timer uses setVirtualForeground. And to use setVirtualForeground you need an `ImageData` object. One way to make an ImageData is by using a `<canvas>`, which is what Zoom’s Timer App does.

> **[CanvasRenderingContext2D: getImageData() method - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData)**
>
> The CanvasRenderingContext2D method
> getImageData() of the Canvas 2D API returns an
> ImageData object representing the underlying pixel data for a specified
> portion of the canvas.

> **[Drawing DOM objects into a canvas](http://web.archive.org/web/20140901100550/https://developer.mozilla.org/en-US/docs/Web/HTML/Canvas/Drawing_DOM_objects_into_a_canvas)**
>
> Although it's not trivial (for security reasons), it's possible to draw DOM content—such as HTML —into a canvas. This article, derived from this blog post by Robert O'Callahan, covers how you can do it securely, safely, and in accordance with the...

That means, it

Also be sure to set `persistence:"app"` so that if the user closes the app, the timer goes away.

---

<div class="post-metadata">

**Author:** ![tommmyy890](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommmyy890/32/50306_2.png) [@tommmyy890](https://devforum.zoom.us/u/tommmyy890)\
**Post date:** [August 24, 2023, 5:20am UTC](https://devforum.zoom.us/t/i-want-to-display-timer-or-clock-on-zoom-video/92922/4 "2023-08-24T05:20:10Z")

</div>

Thanks, @Robert.Wallis for your Response Really Appreciated, so previously I tried to display the timer through camera mode, but drawWebview takes a lot of time to initialize Do you know any technique or something that can speed up this flow @Robert.Wallis ?

thanks Again,

---

<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:** [August 24, 2023, 4:30pm UTC](https://devforum.zoom.us/t/i-want-to-display-timer-or-clock-on-zoom-video/92922/5 "2023-08-24T16:30:35Z")

</div>

The initial runRenderingContext does take a long time. It has to start CEF, so it’s up to the Chromium team to make it faster.

However you can use `drawWebView` and `clearWebView` to show or hide the webview quickly after it has started. This does not start or end the chromium process, but just makes the whole webview visible or invisible.

So when your app starts, you could runRenderingContext right away, then when the person starts a timer drawWebView. Maybe that would work?

---

<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:** [January 1, 2024, 10:57pm UTC](https://devforum.zoom.us/t/i-want-to-display-timer-or-clock-on-zoom-video/92922/7 "2024-01-01T22:57:21Z")

</div>

Just a quick note in case someone is looking for this… the [**Timer - Clock, Agenda, Countdown & Stopwatch**](https://marketplace.zoom.us/apps/hN2AgjdBSAu3BcC9r5vyfg) App for Zoom integrates directly into the Zoom application and can display a Timer or Clock on Zoom Video with many customization options.
