# Self Video in PureJS demo stopped working in Chrome

**URL:** <https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694>\
**Category:** Web\
**Created:** [July 26, 2021, 1:47am UTC](https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694 "2021-07-26T01:47:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![stipoy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/stipoy/32/23111_2.png) [@stipoy](https://devforum.zoom.us/u/stipoy)\
**Post date:** [July 26, 2021, 1:47am UTC](https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694/1 "2021-07-26T01:47:41Z")

</div>

**Description**  
I have tested the PureJS demo several times before and it was working properly. We’ve based most of our code on it. 2 days ago, the self video of our app stopped working, with no changes made. I tested the PureJS demo again and the self video of it stopped working as well. No error message, everything else is working, meeting joined, the green light of the camera goes on and off but the video is not shown on the screen. Video works in preview but does not render when in a meeting. It works fine in Safari (except for audio, which is expected). The React demo works fine too. Tried resetting Chrome also, same result.

**Error**  
No error message is displayed. The name of the participant disappears, which normally means the video should start rendering, but nothing is rendered. Happens only in Chrome.

**Which Web Video SDK version?**  
This is using the PureJS demo, using either web video SDK 1.1.0 or 1.3.0. Same results.

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Download the PureJS demo, make necessary configurations.
2. Run the PureJS demo in Chrome
3. Join the meeting
4. Toggle the camera on/off

**Screenshots**

 ![Screen Shot 2021-07-26 at 9.44.43 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/6122d5c95cdb62e7b9f09bbd4a1cbe3036410468.png)

**Device (please complete the following information):**

- Device: Macbook Pro
- OS: High Sierra
- Browser: Chrome Version 92.0.4515.107 (Official Build) (x86\_64)

**Additional context**  
This used to work; still works fine in Safari. React demo works with no issues also.

---

<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:** [July 28, 2021, 1:59am UTC](https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694/2 "2021-07-28T01:59:12Z")

</div>

Hey @stipoy

Thanks for your feedback.

This is a known issue. We use `ImageCapture` in Video SDK, but it has potential problems that may cause video stuck. So we introduce [WebCodecs](https://github.com/w3c/webcodecs) to improve the issue. Since the API is not stable yet, you should register an [origin trial](https://developer.chrome.com/origintrials/#/register_trial/-7811493553674125311) to enable this feature.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![stipoy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/stipoy/32/23111_2.png) [@stipoy](https://devforum.zoom.us/u/stipoy)\
**Post date:** [July 28, 2021, 2:35am UTC](https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694/3 "2021-07-28T02:35:32Z")

</div>

Hi Vic,

Thank you for your reply. Does this mean the Video SDK is not really suitable for a production project right now? We were really hoping to launch soon.

Thanks,  
Stephen

---

<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:** [July 28, 2021, 2:55am UTC](https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694/4 "2021-07-28T02:55:47Z")

</div>

Hey @stipoy

Video SDK is suitable for production. Origin trial is a way to use a pre-release feature of Chrome, our team is cooperating deeply with the Chrome team to help improve Chrome’s functionality.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![stipoy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/stipoy/32/23111_2.png) [@stipoy](https://devforum.zoom.us/u/stipoy)\
**Post date:** [July 28, 2021, 3:51am UTC](https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694/5 "2021-07-28T03:51:17Z")

</div>

Hi Vic, what should we tell end-users is the recommended browser to use for our project? I was initially under the impression Chrome works best, but with this issue, what browser works best? As I understand it these are the known issues for each browser :  
Chrome - self video not rendering  
Firefox - cannot render multiple videos in canvas  
Safari - no audio/ no mic access

---

<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:** [July 28, 2021, 4:14am UTC](https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694/6 "2021-07-28T04:14:01Z")

</div>

Hey @stipoy

Chrome is still the best choice. Once you apply the origin trial, the video stuck issue will be resolved.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![stipoy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/stipoy/32/23111_2.png) [@stipoy](https://devforum.zoom.us/u/stipoy)\
**Post date:** [July 28, 2021, 6:30am UTC](https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694/7 "2021-07-28T06:30:20Z")

</div>

Hi Vic,

Registered for the origin trial already, and added the token in my META tag. Still the same issue in Chrome though. Self video still not appearing. Is there anything I missed?

---

<div class="post-metadata">

**Author:** ![stipoy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/stipoy/32/23111_2.png) [@stipoy](https://devforum.zoom.us/u/stipoy)\
**Post date:** [July 29, 2021, 12:15am UTC](https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694/8 "2021-07-29T00:15:42Z")

</div>

ok applied for Web Isolation Origin Trials and it seems to work already.

---

<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:** [July 29, 2021, 1:11am UTC](https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694/9 "2021-07-29T01:11:08Z")

</div>

Hey @stipoy

That’s right. Thanks for sharing your solution. Starting from Chrome 92, you need to apply the Web Isolation OT for `SharedArrayBuffer`.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![stipoy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/stipoy/32/23111_2.png) [@stipoy](https://devforum.zoom.us/u/stipoy)\
**Post date:** [July 29, 2021, 8:38am UTC](https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694/10 "2021-07-29T08:38:40Z")

</div>

Thanks too. I think we finally got it to be pretty stable in Chrome. Here’s the link in case anyone wants to see a working demo [https://beta.gameroom.app](https://beta.gameroom.app/)/

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 2, 2021, 7:55pm UTC](https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694/11 "2021-08-02T19:55:52Z")

</div>

Thanks for sharing your demo @stipoy ! 🙂

-Tommy

---

<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:** [September 2, 2021, 5:56am UTC](https://devforum.zoom.us/t/self-video-in-purejs-demo-stopped-working-in-chrome/54694/12 "2021-09-02T05:56:20Z")

</div>

Closed on September 2, 2021, 5:56am UTC

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