# Video beginning then closing after a few seconds

**URL:** <https://devforum.zoom.us/t/video-beginning-then-closing-after-a-few-seconds/17373>\
**Category:** Web\
**Created:** [May 13, 2020, 5:21am UTC](https://devforum.zoom.us/t/video-beginning-then-closing-after-a-few-seconds/17373 "2020-05-13T05:21:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![james1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/james1/32/3062_2.png) [@james1](https://devforum.zoom.us/u/james1)\
**Post date:** [May 13, 2020, 5:21am UTC](https://devforum.zoom.us/t/video-beginning-then-closing-after-a-few-seconds/17373/1 "2020-05-13T05:21:56Z")

</div>

**Description**  
I currently have a Web SDK app which joins a meeting and automatically, joins pc audio by performing a click on the join audio element… This works as expected.  
After this i join video by performing a click on join video using javascript.

Although, once join video element is clicked programatically some unexpected behaviour is occurring.

**Error**

1. Perform automatic click on join video button through Javascript.
2. Webcam records and video starts (Expected)
3. Webcam stops recording and video stops (Unexpected) \<---- Why is this part happening?

Notes:

- If i perform this step manually by making a mouse click this does not happen.
- Not sure if this is relevant but the web sdk user is not the host of the meeting.

**Which version?**  
Zoom web sdk 1.7.7  
Desktop - Chrome 81.0.4044.138 64bit

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

**Screenshots**  
If applicable, add screenshots to help explain your problem.

**Additional context**  
This use to work in previous versions of the Web SDK. Possibly has something to do with browser autoplay settings although i’m not sure

---

<div class="post-metadata">

**Author:** ![taushifali](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/taushifali/32/2065_2.png) [@taushifali](https://devforum.zoom.us/u/taushifali)\
**Post date:** [May 13, 2020, 6:27pm UTC](https://devforum.zoom.us/t/video-beginning-then-closing-after-a-few-seconds/17373/2 "2020-05-13T18:27:54Z")

</div>

This is happening with me also in zoom web sdk, video going on when I start meeting then it goes off after some time automatically.  
Don’t know what happened exactly?

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [May 16, 2020, 12:07am UTC](https://devforum.zoom.us/t/video-beginning-then-closing-after-a-few-seconds/17373/3 "2020-05-16T00:07:35Z")

</div>

Hi @james1 @taushifali

When the error occurs, do you see any errors displaying within the console log? Would you be able to provide a quick screen recording of this as well, to help us investigate the issue?

Thanks

---

<div class="post-metadata">

**Author:** ![james1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/james1/32/3062_2.png) [@james1](https://devforum.zoom.us/u/james1)\
**Post date:** [May 19, 2020, 10:41pm UTC](https://devforum.zoom.us/t/video-beginning-then-closing-after-a-few-seconds/17373/4 "2020-05-19T22:41:40Z")

</div>

Hi @michael_p.zoom

Here is a screen recording to aid investigation of the issue. [https://we.tl/t-DCbcwLltYc](https://we.tl/t-DCbcwLltYc)

Any errors that display are visible in the screen recording as I have the Dev console open.

In the video you should see a black box open and “video started” in the log once I simulate a user clicking on start video.

Once this happens the webcam starts recording (A black box appears in top right corner) and then after a few seconds the webcam stops recording (the black box disappears).

Thanks,  
James

---

<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:** [May 22, 2020, 10:18pm UTC](https://devforum.zoom.us/t/video-beginning-then-closing-after-a-few-seconds/17373/5 "2020-05-22T22:18:02Z")

</div>

Hey @james1,

Can you email these details and the meeting ID this is happening to, to [developersupport@zoom.us](mailto:developersupport@zoom.us).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![bamurph](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bamurph/32/9619_2.png) [@bamurph](https://devforum.zoom.us/u/bamurph)\
**Post date:** [June 1, 2020, 5:34pm UTC](https://devforum.zoom.us/t/video-beginning-then-closing-after-a-few-seconds/17373/6 "2020-06-01T17:34:56Z")

</div>

@james1

Hi James, I’m curious if you are still experiencing this problem or found any solution? We’re having a very similar issue. Its not 100% consistent but I haven’t found a pattern yet.

Thanks,

Ben

---

<div class="post-metadata">

**Author:** ![james1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/james1/32/3062_2.png) [@james1](https://devforum.zoom.us/u/james1)\
**Post date:** [June 3, 2020, 4:28am UTC](https://devforum.zoom.us/t/video-beginning-then-closing-after-a-few-seconds/17373/7 "2020-06-03T04:28:29Z")

</div>

Hi @bamurph

I had to uncheck the setting for the meeting host below. This allowed me to do what I needed.

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

Cheers

---

<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:** [June 8, 2020, 6:24pm UTC](https://devforum.zoom.us/t/video-beginning-then-closing-after-a-few-seconds/17373/8 "2020-06-08T18:24:58Z")

</div>

Hey @james1,

Happy to hear you figured out the issue! 🙂

@bamurph, did that fix the issue for you too?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:55pm UTC](https://devforum.zoom.us/t/video-beginning-then-closing-after-a-few-seconds/17373/9 "2020-08-21T21:55:41Z")

</div>

Closed on August 21, 2020, 9:55pm UTC


