# What conditions do we need to check before joining a video call

**URL:** <https://devforum.zoom.us/t/what-conditions-do-we-need-to-check-before-joining-a-video-call/63906>\
**Category:** Web\
**Created:** [February 7, 2022, 1:21pm UTC](https://devforum.zoom.us/t/what-conditions-do-we-need-to-check-before-joining-a-video-call/63906 "2022-02-07T13:21:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoaib](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shoaib/32/28580_2.png) [@shoaib](https://devforum.zoom.us/u/shoaib)\
**Post date:** [February 7, 2022, 1:21pm UTC](https://devforum.zoom.us/t/what-conditions-do-we-need-to-check-before-joining-a-video-call/63906/1 "2022-02-07T13:21:54Z")

</div>

For joining a video call, FIrst I’m waiting for `join()` API to complete and after that I’m also waiting for `video decode` to be set to `true`,  
even then also on starting video call sometimes I get error on `mediaStream.switchCamera` API as _Cannot find cameraDeviceId in camera devices list_.  
because even at that moment `mediaStream.getCameraList()` returns an empty array.

**Can you please suggest what conditions should we check before joining a video call?**  
as nothing related to it is mentioned in docs as well.

---

<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:** [February 9, 2022, 10:38am UTC](https://devforum.zoom.us/t/what-conditions-do-we-need-to-check-before-joining-a-video-call/63906/2 "2022-02-09T10:38:26Z")

</div>

Hey @shoaib

Thanks for your feedback.

If you want to start video with a specific camera, use `CaptureVideoOption` parameter, set value of `cameraId `. The `switchCamera` is used in the scene where the video has already started and the camera needs to be switched.

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:** [March 11, 2022, 8:38pm UTC](https://devforum.zoom.us/t/what-conditions-do-we-need-to-check-before-joining-a-video-call/63906/3 "2022-03-11T20:38:47Z")

</div>

Closed on March 11, 2022, 8:38pm UTC

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