# Screen sharing custom / Is it possible to broadcast to two publishers in one session?

**URL:** <https://openvidu.discourse.group/t/screen-sharing-custom-is-it-possible-to-broadcast-to-two-publishers-in-one-session/3383>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [September 16, 2021, 9:10am UTC](https://openvidu.discourse.group/t/screen-sharing-custom-is-it-possible-to-broadcast-to-two-publishers-in-one-session/3383 "2021-09-16T09:10:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![buck](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@buck](https://openvidu.discourse.group/u/buck)\
**Post date:** [September 16, 2021, 9:10am UTC](https://openvidu.discourse.group/t/screen-sharing-custom-is-it-possible-to-broadcast-to-two-publishers-in-one-session/3383/1 "2021-09-16T09:10:07Z")

</div>

I am working while referring to the screen sharing function document.  
Screen sharing’s self-test confirmed that it works correctly.

I want to change this shared screen to my screen that was previously broadcast, but I can’t solve it smoothly due to lack of knowledge.

I tried to broadcast two screens at once, but it was impossible to broadcast to two publishers in one session.

So, I unpublished my existing publisher and sent a new publisher, but my video element that was being sent out disappears.

I tried to refer to the screen transition example, but I couldn’t get the video track before it was published to the session. can you help?

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [September 16, 2021, 9:59am UTC](https://openvidu.discourse.group/t/screen-sharing-custom-is-it-possible-to-broadcast-to-two-publishers-in-one-session/3383/2 "2021-09-16T09:59:55Z")

</div>

It is possible to broadcast two publishers in the same session, but you will need to use two OpenVidu objects simulating two participants.

Here you have an example application: [GitHub - cruizba/openvidu-tutorial-insecure-js-with-screenshare: Insecure js tutorial with screenshare](https://github.com/cruizba/openvidu-tutorial-insecure-js-with-screenshare)

---

<div class="post-metadata">

**Author:** ![buck](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@buck](https://openvidu.discourse.group/u/buck)\
**Post date:** [September 17, 2021, 12:15am UTC](https://openvidu.discourse.group/t/screen-sharing-custom-is-it-possible-to-broadcast-to-two-publishers-in-one-session/3383/3 "2021-09-17T00:15:29Z")

</div>

Oh my gosh! thank you so much.
