# Solving a screen-sharing bug without doing all the big refactor is possible?

**URL:** <https://openvidu.discourse.group/t/solving-a-screen-sharing-bug-without-doing-all-the-big-refactor-is-possible/1952>\
**Category:** How to implement?\
**Tags:** v2\
**Created:** [September 5, 2020, 2:14am UTC](https://openvidu.discourse.group/t/solving-a-screen-sharing-bug-without-doing-all-the-big-refactor-is-possible/1952 "2020-09-05T02:14:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![beka.iglesias](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/beka.iglesias/32/52_2.png) [@beka.iglesias](https://openvidu.discourse.group/u/beka.iglesias)\
**Post date:** [September 5, 2020, 2:14am UTC](https://openvidu.discourse.group/t/solving-a-screen-sharing-bug-without-doing-all-the-big-refactor-is-possible/1952/1 "2020-09-05T02:14:51Z")

</div>

Hello,

I want to solve this issue without doing a big refactor In one app (based in openvidu 2.12 but with a lot of features added):

> <https://github.com/OpenVidu/openvidu-call/issues/23>
>
> version 2.11.0
> Steps:
> open https://demos.openvidu.io/openvidu-call/
> start a call
> start a screen sharing
> stop a screen sharing
> start a screen sharing again
> Expected results:
> iceCandidates are successfully added
> Actual results:
> iceCandidates are...

How have you solved this issue?

I was comparing between releases and I have an idea about the changes regarding screen-sharing methods but any explanation about what was wrong before so that screen-sharing was working only once a session…and what was fixed will be welcome.

Thaks in advance,

---

<div class="post-metadata">

**Author:** ![beka.iglesias](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/beka.iglesias/32/52_2.png) [@beka.iglesias](https://openvidu.discourse.group/u/beka.iglesias)\
**Post date:** [September 23, 2020, 5:04pm UTC](https://openvidu.discourse.group/t/solving-a-screen-sharing-bug-without-doing-all-the-big-refactor-is-possible/1952/2 "2020-09-23T17:04:54Z")

</div>

I was solving it in my OpenVidu app without big refactor finally. I was forgetting to update the status of this question.
