# Unable to change camera device

**URL:** <https://devforum.zoom.us/t/unable-to-change-camera-device/127353>\
**Category:** Video SDK\
**Tags:** phone, video-sdk\
**Created:** [February 18, 2025, 6:02am UTC](https://devforum.zoom.us/t/unable-to-change-camera-device/127353 "2025-02-18T06:02:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ton](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ton/32/67104_2.png) [@Ton](https://devforum.zoom.us/u/Ton)\
**Post date:** [February 18, 2025, 6:02am UTC](https://devforum.zoom.us/t/unable-to-change-camera-device/127353/1 "2025-02-18T06:02:54Z")

</div>

**Video SDK Type and Version**  
@zoom/videosdk 2.1.5

**Description**  
When trying to switch camera device on mobile, it shows “Could not start video source”. Then the video element turns to black and stops working.

**Error?**  
“Could not start video source”

**How To Reproduce**  
Can provide small sample project in a zip file if necessary. The error happens in this function where the selectedCamera is the deviceId.

```auto
      attachLocalVideoTrack() {
        if (!this.selectedCamera) return;
        const promise = this.lvt.isVideoStarted ? this.lvt.stop() : Promise.resolve();

        promise
          .then(() => this.lvt.switchCamera(this.selectedCamera))
          .then(() => this.lvt.start(this.$refs.videoRef))
          .catch(alert);
      },

```

---

<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 28, 2025, 12:47pm UTC](https://devforum.zoom.us/t/unable-to-change-camera-device/127353/2 "2025-02-28T12:47:16Z")

</div>

Hey @Ton

Thanks for your feedback.

Could you share the Video SDK function call behind the code snippet you provided?

Or does the `lvt` variable refer to `localVideoTrack`?

If so, there’s no need to stop the video track manually; the `switchCamera` method will handle it.

Thanks  
Vic
