# Video Sdk unable to switchCamera WEB (chrome, mozilla, safari)

**URL:** <https://devforum.zoom.us/t/video-sdk-unable-to-switchcamera-web-chrome-mozilla-safari/103510>\
**Category:** Video SDK\
**Created:** [February 8, 2024, 10:31pm UTC](https://devforum.zoom.us/t/video-sdk-unable-to-switchcamera-web-chrome-mozilla-safari/103510 "2024-02-08T22:31:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![enricke](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/enricke/32/56278_2.png) [@enricke](https://devforum.zoom.us/u/enricke)\
**Post date:** [February 8, 2024, 10:31pm UTC](https://devforum.zoom.us/t/video-sdk-unable-to-switchcamera-web-chrome-mozilla-safari/103510/1 "2024-02-08T22:31:27Z")

</div>

Hello  
Im using Vue 2 and having issue on switching the camera i have 2 cameras on my desktop which i need to switch

on my template this is the user can change the camera

```auto
                <v-select @change="changeCam" v-model="cameraSelected" :items="cameraList" item-text="label" item-value="deviceId" return-object label="Camera" solo></v-select>

```

and once change this is the code

```auto
 changeCam(){
                console.log('camera Id', this.cameraSelected.deviceId)
                this.stream.switchCamera(this.cameraSelected.deviceId)
            

            },

```

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [February 20, 2024, 2:02pm UTC](https://devforum.zoom.us/t/video-sdk-unable-to-switchcamera-web-chrome-mozilla-safari/103510/2 "2024-02-20T14:02:58Z")

</div>

Hi @enricke, can you share the error message? What’s the problem you’re facing?

I was able to switch the camera easily using this snippet:

```js
  const mediaStream = client.getMediaStream();
  const devices = await mediaStream.getCameraList(); // get devices
  console.log(devices) // double check that device shows here
  mediaStream.switchCamera(devices[index].deviceId); // switch 

```
