# StartShareCamera in Windows SDK not working properly

**URL:** <https://devforum.zoom.us/t/startsharecamera-in-windows-sdk-not-working-properly/62245>\
**Category:** Windows\
**Created:** [January 5, 2022, 8:14pm UTC](https://devforum.zoom.us/t/startsharecamera-in-windows-sdk-not-working-properly/62245 "2022-01-05T20:14:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanp1](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@ryanp1](https://devforum.zoom.us/u/ryanp1)\
**Post date:** [January 5, 2022, 8:14pm UTC](https://devforum.zoom.us/t/startsharecamera-in-windows-sdk-not-working-properly/62245/1 "2022-01-05T20:14:02Z")

</div>

**Description**  
The SDK doesn’t appear to be sharing anything when trying to share a camera using IMeetingShareController::StartShareCamera. It says it is sharing, but nothing is actually being shared.

**Which Windows Meeting SDK version?**  
5.9.1

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Go to IMeetingShareController
2. Call controller-\>StartShareCamera()
3. Returns success, but nothing is being shared
4. Calls to controller-\>CanSwitchToShareNextCamera() output true
5. Calls to controller-\>SwitchToShareNextCamera() return SDKERR\_WRONG\_USAGE

**Screenshots**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/3/03a15d27b591b4929c20545c4473c0ef8c2c0d9e.png)

**Device (please complete the following information):**

- Device: HP Probook 650 G5
- OS:Windows 10

**Additional Context**  
If I use the Zoom UI to share a camera it works fine and calls to IMeetingShareController::SwitchToShareNextCamera() work as well.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 7, 2022, 6:25pm UTC](https://devforum.zoom.us/t/startsharecamera-in-windows-sdk-not-working-properly/62245/2 "2022-01-07T18:25:32Z")

</div>

Hi @ryanp1, thanks for using the dev forum.

Sorry to hear you’re having issues with sharing your screen programmatically. Can you please provide a full code snippet showing how you are sharing the screen so that we can look into this further?

Thanks!

---

<div class="post-metadata">

**Author:** ![ryanp1](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@ryanp1](https://devforum.zoom.us/u/ryanp1)\
**Post date:** [January 7, 2022, 8:30pm UTC](https://devforum.zoom.us/t/startsharecamera-in-windows-sdk-not-working-properly/62245/3 "2022-01-07T20:30:39Z")

</div>

I have a static IMeetingService that gets created when the project starts:

```auto
static ZOOM_SDK_NAMESPACE::IMeetingService* _meetingService;
ZOOM_SDK_NAMESPACE::CreateMeetingService(&_meetingService);

```

then when the user presses the button to start sharing a camera I call StartShareCamera():

```auto
_meetingService->GetMeetingShareController()->StartShareCamera();

```

Everything else is working fine. This is the only part of my app that is having an issue. Again, if I use the Zoom UI to share a camera I can switch cameras with no issue and sharing the camera works fine. There is only a problem when I use the SDK function to start sharing a camera. I have not tried sharing a screen or anything else, only the camera.

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 10, 2022, 5:34pm UTC](https://devforum.zoom.us/t/startsharecamera-in-windows-sdk-not-working-properly/62245/4 "2022-01-10T17:34:34Z")

</div>

Hi @ryanp1,

At what point is the `StartShareCamera` function being called? Are there any additional checks of meeting status or share capabilities happening before that is called? Please provide some additional context so that we can get a full picture of when this is happening.

Thanks!

---

<div class="post-metadata">

**Author:** ![ryanp1](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@ryanp1](https://devforum.zoom.us/u/ryanp1)\
**Post date:** [January 11, 2022, 2:45pm UTC](https://devforum.zoom.us/t/startsharecamera-in-windows-sdk-not-working-properly/62245/5 "2022-01-11T14:45:39Z")

</div>

After creating the meeting service I start a private meeting using my pmi. I check if I can start sharing using `_meetingService->GetMeetingShareController()->CanStartShare()` which returns true and then I try to start sharing the camera.

No other checks are being made. I was able to share a whiteboard with no issues using the exact same steps. Nothing else is happening in this process.

Again, I am able to start sharing a camera in the same meeting if I use the Zoom UI (press the Share Screen button, go to advanced tab and select Content from 2nd Camera) and it works fine. If I do that I am also able to use `_meetingService->GetMeetingShareController()->SwitchToShareNextCamera()` to switch cameras and it works with no issue.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 12, 2022, 12:27am UTC](https://devforum.zoom.us/t/startsharecamera-in-windows-sdk-not-working-properly/62245/6 "2022-01-12T00:27:38Z")

</div>

Hi @ryanp1,

Got it, thanks for the additional information. There doesn’t seem to be anything wrong with your implementation, so I think we’ll need the SDK logs to investigate further. Can you please provide the encrypted SDK logs?

Thanks!

---

<div class="post-metadata">

**Author:** ![ryanp1](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@ryanp1](https://devforum.zoom.us/u/ryanp1)\
**Post date:** [January 12, 2022, 2:27pm UTC](https://devforum.zoom.us/t/startsharecamera-in-windows-sdk-not-working-properly/62245/7 "2022-01-12T14:27:05Z")

</div>

How can I send this to you? When I try to attach it to a message I get an error message saying the file type is now allowed.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 13, 2022, 9:11pm UTC](https://devforum.zoom.us/t/startsharecamera-in-windows-sdk-not-working-properly/62245/8 "2022-01-13T21:11:12Z")

</div>

Hi @ryanp1,

Apologies for not including it in my previous reply. The logs can be sent through a ticket via our [developer support site](https://zoomdevelopersupport.zendesk.com/hc/en-us). Be sure to mention this forum topic so that the ticket is properly routed.

Thanks!

---

<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:** [February 13, 2022, 7:11am UTC](https://devforum.zoom.us/t/startsharecamera-in-windows-sdk-not-working-properly/62245/9 "2022-02-13T07:11:13Z")

</div>

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