# Camera active device

**URL:** <https://devforum.zoom.us/t/camera-active-device/134153>\
**Category:** Web\
**Created:** [June 18, 2025, 2:27pm UTC](https://devforum.zoom.us/t/camera-active-device/134153 "2025-06-18T14:27:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavlo1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pavlo1/32/69662_2.png) [@Pavlo1](https://devforum.zoom.us/u/Pavlo1)\
**Post date:** [June 18, 2025, 2:27pm UTC](https://devforum.zoom.us/t/camera-active-device/134153/1 "2025-06-18T14:27:54Z")

</div>

**Description**  
Trying to set the active camera after calling `getCameraList()` doesn’t work correctly, and here’s why:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/1/f1509cd6b7296b1ed45883da8f1630eb7b75c4fa.png)

For example, calling `await navigator.mediaDevices.enumerateDevices()` returns 7 devices — but only one of them is an actual camera.

After I ran the following:

```auto
console.log(mediaStream.getCameraList());
console.log(mediaStream.getActiveCamera());

```

I got

```auto
[
    {
        "deviceId": "118240c701de42a642fcce139b4a0a5c6c761cbe3acccc7b508195842bdb4365",
        "label": "Integrated Webcam"
    }
]

'default'

```

Is this expected behavior? Should I write workaround to set active camera correctly?

**zoom/videosdk 2.1.10**

**Device:**

- Device: [Dell Inc. XPS 15 9520]
- OS: [Ubuntu 22.04.5 LTS]
- Browser: [Google Chrome Version 136.0.7103.59 (Official Build) (64-bit)]

---

<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:** [June 19, 2025, 5:28am UTC](https://devforum.zoom.us/t/camera-active-device/134153/2 "2025-06-19T05:28:41Z")

</div>

Hey @Pavlo1

Thanks for your feedback.

`enumerateDevices` returns all available media devices, including microphones, audio output devices, and cameras. Devices with `kind` equal to `videoinput` are cameras.

As for why `getActiveCamera()` returns `'default'`, it’s because `mediaStream.startVideo()` hasn’t been called yet. Without starting the video, the SDK hasn’t actually accessed the active camera, so it falls back to returning the default value `'default'`.

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:** [June 19, 2026, 5:28am UTC](https://devforum.zoom.us/t/camera-active-device/134153/3 "2026-06-19T05:28:53Z")

</div>

Closed on June 19, 2026, 5:28am UTC

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