# Screen share problem (webrtc with TheoPlayer)

**URL:** <https://community.wowza.com/t/screen-share-problem-webrtc-with-theoplayer/93427>\
**Category:** Wowza Streaming Engine\
**Tags:** webrtc\
**Created:** [June 16, 2021, 2:53pm UTC](https://community.wowza.com/t/screen-share-problem-webrtc-with-theoplayer/93427 "2021-06-16T14:53:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slava\_Isaev](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Slava\_Isaev](https://community.wowza.com/u/Slava_Isaev)\
**Post date:** [June 16, 2021, 2:53pm UTC](https://community.wowza.com/t/screen-share-problem-webrtc-with-theoplayer/93427/1 "2021-06-16T14:53:18Z")

</div>

Using wowza webrtc with TheoPlayer, we faced a problem when the transition from video to screenshare takes a very long time and stops video playback (it can take from 10 seconds to 1 minute)  
Used a library from the github repository [https://github.com/WowzaMediaSystems/webrtc-examples/tree/master/src/jquery-example](https://github.com/WowzaMediaSystems/webrtc-examples/tree/master/src/jquery-example)  
In the video ( [https://youtu.be/4i9-o8SgYXg](https://youtu.be/4i9-o8SgYXg) ) you can see an example of how it happens instantly from the side of the wowza webrtc, but from the side of the player it takes long time  
cod example` if(this.share) { WowzaWebRTCPublish.setCamera('screen'); } else { WowzaWebRTCPublish.setCamera(this.videoId); }`

thanks.

---

<div class="post-metadata">

**Author:** ![Karel\_Boek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/karel_boek/32/454_2.png) [@Karel\_Boek](https://community.wowza.com/u/Karel_Boek)\
**Post date:** [June 16, 2021, 6:40pm UTC](https://community.wowza.com/t/screen-share-problem-webrtc-with-theoplayer/93427/2 "2021-06-16T18:40:17Z")

</div>

This is a wild guess; but can it be related to the recursive screen capturing - so a screen capture of a screen capture of a screen capture etc?

---

<div class="post-metadata">

**Author:** ![Slava\_Isaev](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Slava\_Isaev](https://community.wowza.com/u/Slava_Isaev)\
**Post date:** [June 16, 2021, 6:53pm UTC](https://community.wowza.com/t/screen-share-problem-webrtc-with-theoplayer/93427/3 "2021-06-16T18:53:44Z")

</div>

Karel thanks for your reply!  
If I understood correctly, then no, this is not due to the fact that I recorded the screen at that time, because it was repeated on different devices, browsers and different people without screen recording

---

<div class="post-metadata">

**Author:** ![Karel\_Boek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/karel_boek/32/454_2.png) [@Karel\_Boek](https://community.wowza.com/u/Karel_Boek)\
**Post date:** [June 16, 2021, 7:08pm UTC](https://community.wowza.com/t/screen-share-problem-webrtc-with-theoplayer/93427/4 "2021-06-16T19:08:33Z")

</div>

I figured. Is this an issue with the screensharing: when you start with screenshare directly - without using webcam first - will that also be slow? Or is it specifically when you switch from webcam to screenshare?

---

<div class="post-metadata">

**Author:** ![Slava\_Isaev](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Slava\_Isaev](https://community.wowza.com/u/Slava_Isaev)\
**Post date:** [June 16, 2021, 7:57pm UTC](https://community.wowza.com/t/screen-share-problem-webrtc-with-theoplayer/93427/5 "2021-06-16T19:57:39Z")

</div>

yes, when switching from webcam to screen sharing or back

---

<div class="post-metadata">

**Author:** ![Slava\_Isaev](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Slava\_Isaev](https://community.wowza.com/u/Slava_Isaev)\
**Post date:** [June 24, 2021, 6:17am UTC](https://community.wowza.com/t/screen-share-problem-webrtc-with-theoplayer/93427/6 "2021-06-24T06:17:53Z")

</div>

![Знімок екрана 2021-06-24 о 09.14.33](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/1X/fc5114a66420f4355fd8388598abf63aecf6f2d0.png)

we fix problem. its inside WowzaPeerConnectionPublish.js @Karel_Boek pls ask developers check this issue

---

<div class="post-metadata">

**Author:** ![Karel\_Boek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/karel_boek/32/454_2.png) [@Karel\_Boek](https://community.wowza.com/u/Karel_Boek)\
**Post date:** [June 24, 2021, 7:04am UTC](https://community.wowza.com/t/screen-share-problem-webrtc-with-theoplayer/93427/7 "2021-06-24T07:04:22Z")

</div>

I’m not a Wowza employee; I work at Raskenlund where we work a lot with Wowza. I think the official way to notify Wowza developers is to file a ticket with [support@wowza.com](mailto:support@wowza.com). You may also notify @Rose_Power-Wowza_Com

---

<div class="post-metadata">

**Author:** ![Slava\_Isaev](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Slava\_Isaev](https://community.wowza.com/u/Slava_Isaev)\
**Post date:** [June 24, 2021, 7:25am UTC](https://community.wowza.com/t/screen-share-problem-webrtc-with-theoplayer/93427/8 "2021-06-24T07:25:16Z")

</div>

thank @Karel_Boek !, I will write @Rose_Power-Wowza_Com and support. We found a lot of interesting things 🙂

---

<div class="post-metadata">

**Author:** ![Slava\_Isaev](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Slava\_Isaev](https://community.wowza.com/u/Slava_Isaev)\
**Post date:** [June 24, 2021, 9:17am UTC](https://community.wowza.com/t/screen-share-problem-webrtc-with-theoplayer/93427/9 "2021-06-24T09:17:40Z")

</div>

FYI : this fix will work only with this one

 ![Знімок екрана 2021-06-24 о 09.14.15](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/1X/1f8e323077a19d6feb98838275b16e6c7e27608a.png)

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [June 24, 2021, 3:16pm UTC](https://community.wowza.com/t/screen-share-problem-webrtc-with-theoplayer/93427/10 "2021-06-24T15:16:13Z")

</div>

Thanks @Slava_Isaev, I will share your feedback with the Engine team- appreciate all the info!
