# Failed to capture video

**URL:** <https://devforum.zoom.us/t/failed-to-capture-video/42510>\
**Category:** Web\
**Created:** [February 4, 2021, 6:56am UTC](https://devforum.zoom.us/t/failed-to-capture-video/42510 "2021-02-04T06:56:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amar](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Amar](https://devforum.zoom.us/u/Amar)\
**Post date:** [February 4, 2021, 6:56am UTC](https://devforum.zoom.us/t/failed-to-capture-video/42510/1 "2021-02-04T06:56:00Z")

</div>

After joining the session, when I try to capture video, it throws an error. Although I see the camera light on.

**Error**  
JsMediaSDK.js:1367 Uncaught (in promise) TypeError: Cannot read property ‘id’ of null  
at JsMediaSDK\_Instance.\_callee15$ (JsMediaSDK.js:1367)  
at tryCatch (runtime.js:62)  
at Generator.invoke [as \_invoke] (runtime.js:288)  
at Generator.prototype. [as next] (runtime.js:114)  
at asyncGeneratorStep (asyncToGenerator.js:5)  
at \_next (asyncToGenerator.js:27)

**Which version?**  
zoom-instant-sdk-web-1.0-2.0

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

1. Created sample app and run to start a new session
2. Joined session sucessfully
3. Try to capture camera video using stream.startVideo(canvasId);
4. See error

**Screenshots**

 ![Screen Shot 2021-02-03 at 10.19.06 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/c/cc8abf0394c696855a3c3f286b8a0e31838603c5.png) ![Screen Shot 2021-02-03 at 10.18.15 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/b/9b75a4aff17a3fb03789c6dabc647b3f69991490.png)

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

- Device: Macbook pro
- OS: MacOS Big Sur
- Browser: Chrome

---

<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:** [February 4, 2021, 7:26pm UTC](https://devforum.zoom.us/t/failed-to-capture-video/42510/2 "2021-02-04T19:26:06Z")

</div>

Hey @Amar ,

Thanks for reporting this to us. We will take a look and figure out why this is happening. (CS-2981) 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![Amar](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Amar](https://devforum.zoom.us/u/Amar)\
**Post date:** [February 13, 2021, 5:38pm UTC](https://devforum.zoom.us/t/failed-to-capture-video/42510/3 "2021-02-13T17:38:24Z")

</div>

Never mind @tommy , I found the issue. It was unable to find the canvas with given id.

---

<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:** [February 16, 2021, 10:53pm UTC](https://devforum.zoom.us/t/failed-to-capture-video/42510/4 "2021-02-16T22:53:56Z")

</div>

Happy to hear you got it sorted out! 🙂

Thanks,  
Tommy
