# INVALID\_PARAMETERS: You must pass a \<video\> element to start video capture for Chromium browser

**URL:** <https://devforum.zoom.us/t/invalid-parameters-you-must-pass-a-video-element-to-start-video-capture-for-chromium-browser/62011>\
**Category:** Web\
**Created:** [December 29, 2021, 7:54pm UTC](https://devforum.zoom.us/t/invalid-parameters-you-must-pass-a-video-element-to-start-video-capture-for-chromium-browser/62011 "2021-12-29T19:54:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavloshchur](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@pavloshchur](https://devforum.zoom.us/u/pavloshchur)\
**Post date:** [December 29, 2021, 7:54pm UTC](https://devforum.zoom.us/t/invalid-parameters-you-must-pass-a-video-element-to-start-video-capture-for-chromium-browser/62011/1 "2021-12-29T19:54:02Z")

</div>

I receive the following error when I try to render a self video in Chrome (96.0.4664.110): “You must pass a `<video>` element to start video capture for Chromium browser, Android browser, and Chrome without SharedArrayBuffer support.”

**Steps to reproduce:**

1. git clone [GitHub - zoom/sample-app-videosdk: zoom videosdk web demo](https://github.com/zoom/sample-app-videosdk.git) --branch master --depth 1;
2. cd sample-app-videosdk/purejs-demo;
3. npm install;
4. Edit `config.js`;
5. npm run start;
6. Try to turn on camera after preview window.

**Actual result:**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/2/d2df49a77e716393c06f1d2ec31ef9799beda8d8.png)

**Expected result:**  
A self video is processed.

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [January 4, 2022, 2:05am UTC](https://devforum.zoom.us/t/invalid-parameters-you-must-pass-a-video-element-to-start-video-capture-for-chromium-browser/62011/2 "2022-01-04T02:05:17Z")

</div>

Hey @pavloshchur

Thanks for your feedback.

We will update the purejs-demo, add the CORP related headers to the webpack devServer.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![pavloshchur](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@pavloshchur](https://devforum.zoom.us/u/pavloshchur)\
**Post date:** [January 4, 2022, 11:45am UTC](https://devforum.zoom.us/t/invalid-parameters-you-must-pass-a-video-element-to-start-video-capture-for-chromium-browser/62011/3 "2022-01-04T11:45:19Z")

</div>

Hi @vic.yang,

Thanks for the quick reply.

Will the **purejs-demo** be updated in **1.1.8** version?  
Meanwhile, could you provide us with a quick solution?

---

<div class="post-metadata">

**Author:** ![pavloshchur](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@pavloshchur](https://devforum.zoom.us/u/pavloshchur)\
**Post date:** [January 6, 2022, 10:42pm UTC](https://devforum.zoom.us/t/invalid-parameters-you-must-pass-a-video-element-to-start-video-capture-for-chromium-browser/62011/4 "2022-01-06T22:42:37Z")

</div>

Hey @vic.yang,

Are there any updates when **purejs-demo** will be updated?

---

<div class="post-metadata">

**Author:** ![pavloshchur](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@pavloshchur](https://devforum.zoom.us/u/pavloshchur)\
**Post date:** [January 11, 2022, 9:08am UTC](https://devforum.zoom.us/t/invalid-parameters-you-must-pass-a-video-element-to-start-video-capture-for-chromium-browser/62011/5 "2022-01-11T09:08:50Z")

</div>

Hi @vic.yang,

I have investigated **react-demo** and noticed that without **Cross-Origin-Embedder-Policy** and **Cross-Origin-Opener-Policy** headers camera video started in Chrome could not be rendered in Firefox. I have just removed headers in **webpack.config.dev.js** and **config-overrides.js** files.

I see the following error when turning on camera in Chrome.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/7/07b5a6cbd43d2943422d68633c5874b33b5943cf.png)

No errors in Firefox.

Could you tell me if it is a bug or I have done some mistake?

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [January 11, 2022, 9:31am UTC](https://devforum.zoom.us/t/invalid-parameters-you-must-pass-a-video-element-to-start-video-capture-for-chromium-browser/62011/6 "2022-01-11T09:31:06Z")

</div>

Hey @pavloshchur

This is a known issue and we will fix it in the next release.  
Turning off and turning on the camera may resolve the issue, it’s a temporary workaround until the new version is released.

Thanks for your feedback.

Thanks  
Vic

---

<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:** [February 10, 2022, 7:31pm UTC](https://devforum.zoom.us/t/invalid-parameters-you-must-pass-a-video-element-to-start-video-capture-for-chromium-browser/62011/7 "2022-02-10T19:31:35Z")

</div>

Closed on February 10, 2022, 7:31pm UTC

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