# UIToolkit - INVALID\_PARAMETERS: Expected to accept HTMLCanvasElement or HTMLVideoElement, but actual it is null

**URL:** <https://devforum.zoom.us/t/uitoolkit-invalid-parameters-expected-to-accept-htmlcanvaselement-or-htmlvideoelement-but-actual-it-is-null/128743>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [February 27, 2025, 1:29pm UTC](https://devforum.zoom.us/t/uitoolkit-invalid-parameters-expected-to-accept-htmlcanvaselement-or-htmlvideoelement-but-actual-it-is-null/128743 "2025-02-27T13:29:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MickE](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@MickE](https://devforum.zoom.us/u/MickE)\
**Post date:** [February 27, 2025, 1:29pm UTC](https://devforum.zoom.us/t/uitoolkit-invalid-parameters-expected-to-accept-htmlcanvaselement-or-htmlvideoelement-but-actual-it-is-null/128743/1 "2025-02-27T13:29:12Z")

</div>

@richard.zoom

I’m using the video sdk UI Toolkit version 2.1. When participants join in, I’m seeing an error message at the bottom of the web browser:

INVALID\_PARAMETERS: Expected to accept HTMLCanvasElement or HTMLVideoElement, but actual it is null

This happens for Windows and Macs (Edge, Chrome).

Even though I see the error message, the video and audio still works as I see and hear the participants. Any ideas?

---

<div class="post-metadata">

**Author:** ![ticorrian.heard](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ticorrian.heard/32/70213_2.png) [@ticorrian.heard](https://devforum.zoom.us/u/ticorrian.heard)\
**Post date:** [February 27, 2025, 10:53pm UTC](https://devforum.zoom.us/t/uitoolkit-invalid-parameters-expected-to-accept-htmlcanvaselement-or-htmlvideoelement-but-actual-it-is-null/128743/2 "2025-02-27T22:53:26Z")

</div>

Hi @MickE I tested with version 2.1.0-1 and could not replicate the issue. Could you describe the steps you took to reproduce and share the config you pass into the uitoolkit?

---

<div class="post-metadata">

**Author:** ![MickE](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@MickE](https://devforum.zoom.us/u/MickE)\
**Post date:** [February 28, 2025, 9:57am UTC](https://devforum.zoom.us/t/uitoolkit-invalid-parameters-expected-to-accept-htmlcanvaselement-or-htmlvideoelement-but-actual-it-is-null/128743/4 "2025-02-28T09:57:04Z")

</div>

I’m using Visual Studio 2022 C# backend. This is the config I’m passing in:

---

<div class="post-metadata">

**Author:** ![richard.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/richard.zoom/32/41061_2.png) [@richard.zoom](https://devforum.zoom.us/u/richard.zoom)\
**Post date:** [March 4, 2025, 11:55pm UTC](https://devforum.zoom.us/t/uitoolkit-invalid-parameters-expected-to-accept-htmlcanvaselement-or-htmlvideoelement-but-actual-it-is-null/128743/5 "2025-03-04T23:55:05Z")

</div>

Can you please repost it, @MickE?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 4, 2025, 9:56am UTC](https://devforum.zoom.us/t/uitoolkit-invalid-parameters-expected-to-accept-htmlcanvaselement-or-htmlvideoelement-but-actual-it-is-null/128743/6 "2025-04-04T09:56:01Z")

</div>

Closed on April 4, 2025, 9:56am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
