# Multi stream camera issues in Video SDK for Windows

**URL:** <https://devforum.zoom.us/t/multi-stream-camera-issues-in-video-sdk-for-windows/86205>\
**Category:** Windows\
**Created:** [April 6, 2023, 12:46pm UTC](https://devforum.zoom.us/t/multi-stream-camera-issues-in-video-sdk-for-windows/86205 "2023-04-06T12:46:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlo.aud](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jlo.aud/32/47303_2.png) [@jlo.aud](https://devforum.zoom.us/u/jlo.aud)\
**Post date:** [April 6, 2023, 12:46pm UTC](https://devforum.zoom.us/t/multi-stream-camera-issues-in-video-sdk-for-windows/86205/1 "2023-04-06T12:46:55Z")

</div>

**Description**  
I am having issues enabling and controlling the states of multi stream camera devices in 2 situations:

for context:

```c++
IZoomVideoSDK* mpVideoSDK = CreateZoomVideoSDKObj();
IZoomVideoSDKVideoHelper* pVideoHelper = mpVideoSDK->getVideoHelper();

```

### Issue 1: not possible to enable a multi stream camera device after joining a Zoom Session;

In short, after joining a zoom session every call made to enable a multi stream camera device with `pVideoHelper->enableMultiStreamVideo(dev_id, "anything-here");` fails. The device id being used was acquired from a `IZoomVideoSDKCameraDevice*` pointer to a device derived from `pVideoHelper->getCameraList()`, so I am sure the device id is correct, also because I can use the very same device id to select the normal camera device with `pVideoHelper->selectCamera(dev_id);` (did that just for test purposes). Bigger problem here is that the return of `pVideoHelper->enableMultiStreamVideo` is boolean, so I either know if it worked or not, don’t really get a reason behind the failure.

> The workaround is to execute the code to select the multi stream camera device before joining a session, then it gets enabled and I get no error whatsoever, which leads me to the second issue;

### Issue 2: no possible do disable/enable a multi stream camera device when in a Zoom Session.

It is what it says, once the multi stream camera device gets enabled and session joined, any subsequent calls to `pVideoHelper->disableMultiStreamVideo` or `pVideoHelper->enableMultiStreamVideo` have no effect whatsoever. I also don’t get any error (get true as return of both functions) which misleads the actual behavior of the operation.

### Goal: to be able to enable/disable multi stream camera devices at will being in a Zoom Session or not

I am ok with the workaround of the first issue if I can later disable/enable as I wish.

**Which Windows Video SDK version?**  
zoom-video-sdk-windows-1.6.2

**Device:**

- Device: [e.g. Lenovo Thinkpad p15s]
- OS: [e.g. Windows 10]

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [April 12, 2023, 2:37pm UTC](https://devforum.zoom.us/t/multi-stream-camera-issues-in-video-sdk-for-windows/86205/3 "2023-04-12T14:37:45Z")

</div>

I’m not overly familiar with the Windows SDK - but I will work with the team to try and find a solution for you. Thank you for you patience.

---

<div class="post-metadata">

**Author:** ![jlo.aud](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jlo.aud/32/47303_2.png) [@jlo.aud](https://devforum.zoom.us/u/jlo.aud)\
**Post date:** [May 2, 2023, 11:14am UTC](https://devforum.zoom.us/t/multi-stream-camera-issues-in-video-sdk-for-windows/86205/4 "2023-05-02T11:14:30Z")

</div>

Hello again. I would like to know if you found something in this regard. This is really causing a lot of trouble and delaying a lot the development.

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [May 2, 2023, 12:01pm UTC](https://devforum.zoom.us/t/multi-stream-camera-issues-in-video-sdk-for-windows/86205/5 "2023-05-02T12:01:33Z")

</div>

Thanks for the follow-up - pinging the team again, and I hope to have an answer for you.

---

<div class="post-metadata">

**Author:** ![jlo.aud](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jlo.aud/32/47303_2.png) [@jlo.aud](https://devforum.zoom.us/u/jlo.aud)\
**Post date:** [May 15, 2023, 8:16am UTC](https://devforum.zoom.us/t/multi-stream-camera-issues-in-video-sdk-for-windows/86205/6 "2023-05-15T08:16:57Z")

</div>

Ping. Any news on this?

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [June 2, 2023, 11:33am UTC](https://devforum.zoom.us/t/multi-stream-camera-issues-in-video-sdk-for-windows/86205/7 "2023-06-02T11:33:39Z")

</div>

I got some response today - could you check if you passed the `id` and `name` of another camera instead of the default one?

For the API:  
`virtual bool enableMultiStreamVideo(const zchar_t* cameraDeviceID, const zchar_t* customDeviceName);`

You will need to pass the id and name of a camera that is not the default camera into this API; otherwise, if we pass the default camera id and name into this method, it will return `false`.

So there are two things to confirm:

1. device has more than one camera.
2. `id` and `name` passed into this method are not the default camera.

---

<div class="post-metadata">

**Author:** ![jlo.aud](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jlo.aud/32/47303_2.png) [@jlo.aud](https://devforum.zoom.us/u/jlo.aud)\
**Post date:** [June 5, 2023, 9:00am UTC](https://devforum.zoom.us/t/multi-stream-camera-issues-in-video-sdk-for-windows/86205/8 "2023-06-05T09:00:07Z")

</div>

Hi Kelly, thank you for the reply.

Yeah, it is a valid camera id as stated in the original message and it is NOT the default camera device id, is another camera that I have attached to the system. Also, I am customizing the name, so it is definitely NOT the same name as the main device.

Just to make it clear, as stated in the original post;

I managed to make it work by enabling the camera with a different id (from the default camera device) and a custom name before I join a zoom session. The actual problem is that once I am into the session, I can no longer disable it.

---

<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:** [July 5, 2023, 7:00pm UTC](https://devforum.zoom.us/t/multi-stream-camera-issues-in-video-sdk-for-windows/86205/9 "2023-07-05T19:00:51Z")

</div>

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