# Error when trying to share screen multiple times during same session

**URL:** <https://devforum.zoom.us/t/error-when-trying-to-share-screen-multiple-times-during-same-session/74779>\
**Category:** Web\
**Created:** [August 24, 2022, 9:08am UTC](https://devforum.zoom.us/t/error-when-trying-to-share-screen-multiple-times-during-same-session/74779 "2022-08-24T09:08:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukasz1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lukasz1/32/40754_2.png) [@lukasz1](https://devforum.zoom.us/u/lukasz1)\
**Post date:** [August 24, 2022, 9:08am UTC](https://devforum.zoom.us/t/error-when-trying-to-share-screen-multiple-times-during-same-session/74779/1 "2022-08-24T09:08:17Z")

</div>

**Description**  
When user tries to share screen for second time SDK is behaving unexpectedly.  
I implemented share screen according to documentation ([Screen sharing](https://marketplace.zoom.us/docs/sdk/video/web/essential/screen-share/))

And it works, but only when user shares screen for the first time.

If same user tries to share screen second time event `active-share-change` is not triggered.  
I tried to change it to `peer-share-state-change` and this event is triggered, but when I try to render I receive `INVALID_OPERATION` error

**Browser Console Error**  
`INVALID_OPERATION`

**Which Web Video SDK version?**  
1.4.0

**To Reproduce(If applicable)**  
this scenario causes error:

1. Join session
2. Render video
3. Start share screen (user 1)
4. Stop share screen (user 1)
5. Start share screen (user1)

But this one works fine:

1. Join session
2. Render video
3. Start share screen (user 1)
4. Stop share screen (user 1)
5. Start share screen (user2)
6. Stop share screen (user 2)
7. Start share screen (user 1)

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

- Browser: Chrome
- Browser Version 104.0.5112.102

---

<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:** [August 25, 2022, 3:53am UTC](https://devforum.zoom.us/t/error-when-trying-to-share-screen-multiple-times-during-same-session/74779/2 "2022-08-25T03:53:05Z")

</div>

Hey @lukasz1

Could you share some code snippets for us to troubleshoot the issue?

And if it is convenient for you, could you test your operation on our [sample app demo](https://github.com/zoom/videosdk-web-sample/tree/master/react-demo) , does this issue reproduce?

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:** [September 24, 2022, 3:48pm UTC](https://devforum.zoom.us/t/error-when-trying-to-share-screen-multiple-times-during-same-session/74779/4 "2022-09-24T15:48:18Z")

</div>

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