# Cloud Recording with shared screen

**URL:** <https://devforum.zoom.us/t/cloud-recording-with-shared-screen/105468>\
**Category:** Video SDK\
**Created:** [March 11, 2024, 12:59pm UTC](https://devforum.zoom.us/t/cloud-recording-with-shared-screen/105468 "2024-03-11T12:59:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anish](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anish/32/50453_2.png) [@anish](https://devforum.zoom.us/u/anish)\
**Post date:** [March 11, 2024, 12:59pm UTC](https://devforum.zoom.us/t/cloud-recording-with-shared-screen/105468/1 "2024-03-11T12:59:50Z")

</div>

I am using @zoom/videosdk :1.10.8 in react.js

I want to build screenRecording which record audio of all participant and share screen by host ( screen is shared by host throughout of meeting and i have enabled the recording from only host side), but whenever any participant shared their video in the meeting host screen share is got turned off.

But i want to host can shared screen throught the meeting (because i want to record their screen) and participant can also share their screen anytime in the meeting  
how can i achieve this functionality.

---

<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:** [March 12, 2024, 8:43am UTC](https://devforum.zoom.us/t/cloud-recording-with-shared-screen/105468/2 "2024-03-12T08:43:29Z")

</div>

Hey @anish

Thanks for your feedback.

Are you looking to support multiple sharing screens simultaneously in the session?

By default, Video SDK only allows one person to share their screen at the same time. However, the host can enable multiple individuals to share their screens by using `stream.setSharePrivilege(SharePrivilege.MultipleShare)` method.

On the viewing side, however, only one person’s shared content can be viewed at a time, and you can switch between shared views using `stream.switchShareView` method.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![anish](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anish/32/50453_2.png) [@anish](https://devforum.zoom.us/u/anish)\
**Post date:** [March 18, 2024, 7:05pm UTC](https://devforum.zoom.us/t/cloud-recording-with-shared-screen/105468/3 "2024-03-18T19:05:11Z")

</div>

Hello @vic.yang,

I appreciate your timely reply. I’ve implemented stream.setSharePrivilege(3) on the host side to enable multiple users to share their screens simultaneously. However, when I attempt to use stream.switchShareView(userId), I encounter an “INVALID\_OPERATION” error. Could you please advise on what might be causing this issue?

Thanks  
Anish

---

<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:** [March 20, 2024, 5:55am UTC](https://devforum.zoom.us/t/cloud-recording-with-shared-screen/105468/4 "2024-03-20T05:55:00Z")

</div>

Hey @anish

You need to call `stream.startShareView` first to render the shared content. If you need to switch, then you call `stream.switchShareView` to perform the switch.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![anish](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anish/32/50453_2.png) [@anish](https://devforum.zoom.us/u/anish)\
**Post date:** [March 20, 2024, 9:28am UTC](https://devforum.zoom.us/t/cloud-recording-with-shared-screen/105468/5 "2024-03-20T09:28:55Z")

</div>

He @vic.yang  
Thanks again for your response. The Actual Scenario is we want to record meeting with all participant audio and screen share of host (generally recording is started only from host side), for that first i am starting screen share from host side using this " stream.startShareScreen(document.querySelector(“#” + ZOOMMEDIA.SCREEN\_SHARE\_VIDEO)) " method as mention in doc after that i am starting recording . This is working fine. But other participants are not able to share their screen (non-host participant) according to doc one time only participants can share their screen, then i used “stream.setSharePrivilege(3)” , after that multiple participant are able to shared screen at same time. but none of their screen is visible (it is coming blank), show after that i used stream.switchShareView(userId) it showing invalid opertion. Only two particpant has joined meeting and shared screen simultaneously but none of them screen share is visible.

---

<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:** [March 20, 2024, 9:57am UTC](https://devforum.zoom.us/t/cloud-recording-with-shared-screen/105468/6 "2024-03-20T09:57:19Z")

</div>

Hey @anish

Thank you for sharing your actual usage scenario.

Allow me to provide a brief explanation of how to call Video SDK methods to align with your scenario:

1. On the host’s end, your implementation is correct, you can use the `startShareScreen` method to begin screen sharing:

2. Since the default screen sharing setting allows only one user to share their screen at a time, which doesn’t fit your scenario, the host can enable multi-user screen sharing by calling the following method:

3. Other participants can render the shared content by using `stream.startShareView(canvas, userId)`, but there are some limitations:

We’re working on improving these two limitations, and these features will be supported in future versions.

Thanks  
Vic
