# Random JS error causes Video to stop after pressing Start Video

**URL:** <https://devforum.zoom.us/t/random-js-error-causes-video-to-stop-after-pressing-start-video/29159>\
**Category:** Web\
**Created:** [September 4, 2020, 8:21am UTC](https://devforum.zoom.us/t/random-js-error-causes-video-to-stop-after-pressing-start-video/29159 "2020-09-04T08:21:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimoneLabianca](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@SimoneLabianca](https://devforum.zoom.us/u/SimoneLabianca)\
**Post date:** [September 4, 2020, 8:21am UTC](https://devforum.zoom.us/t/random-js-error-causes-video-to-stop-after-pressing-start-video/29159/1 "2020-09-04T08:21:19Z")

</div>

**Description**  
All of a sudden I am getting an error after the meeting starts that triggers the “stopRenderVideo” function then throws an error. Only just started happening say 20 minutes before the time of writing. Was perfectly fine until then. This is my dev machine, but everything worked fine until now.

**Error**  
Console JS error as per attached image:

**Which version?**  
Version 1.8.0 running in Chrome browser on MacOS

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

1. Run WebSDK Meeting in iframe
2. Click on Start Video
3. Open Console to see errors

**Screenshots**

 ![Screen Shot 2020-09-04 at 6.17.39 pm](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8aafc2621b7b67b060e38db839c07fc1d4d9ffce.png)  
 ![Screen Shot 2020-09-04 at 6.34.34 pm](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/3544123ae0b5d075b1c878b077df0b272c3c1e2d.png)  
**Additional context**  
I am trying to trigger the click on the **Join Computer Audio** and the **Start Video** programmatically as the expected functionality of auto starting the video and audio does not work in Zoom even though I have set the meeting parameters to auto-start.

Also … it seems to save something in the browser as subsequent reloads with my auto trigger click function removed doesn’t make a difference. It is as if it is cached or something.

---

<div class="post-metadata">

**Author:** ![SimoneLabianca](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@SimoneLabianca](https://devforum.zoom.us/u/SimoneLabianca)\
**Post date:** [September 6, 2020, 11:47pm UTC](https://devforum.zoom.us/t/random-js-error-causes-video-to-stop-after-pressing-start-video/29159/2 "2020-09-06T23:47:47Z")

</div>

Adding further to this … it seems that even rolling back to a previous state that did work still causes the error. I tried on several different computers using different browsers. The meeting starts, you can click on Join Audio but as soon as you click on Start Video it crashes.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 9, 2020, 2:42pm UTC](https://devforum.zoom.us/t/random-js-error-causes-video-to-stop-after-pressing-start-video/29159/3 "2020-09-09T14:42:49Z")

</div>

Hi @SimoneLabianca,

Can you confirm you’re embedding the Web SDK in an iFrame (this looks to be the case)? I should note that the [Web SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/web) was not designed to be embedded in an iFrame, which can cause issues like this.

Are you seeing the same issues when using the Web SDK on a web page without an iFrame?

Thanks,  
Will

---

<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:** [October 10, 2020, 12:42am UTC](https://devforum.zoom.us/t/random-js-error-causes-video-to-stop-after-pressing-start-video/29159/4 "2020-10-10T00:42:51Z")

</div>

Closed on October 10, 2020, 12:42am UTC

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