Skip to content

Commit ae0f27e

Browse files
committed
Fixed an issue where screen sharing is not started on a session which was already in the same conference before with already started screen sharing.
1 parent 9c34745 commit ae0f27e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

static/js/directives/screenshare.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ define(['jquery', 'underscore', 'text!partials/screenshare.html', 'text!partials
197197
return;
198198
}
199199
peers[peercall.id] = true;
200+
peercall.e.one("closed", function(event, currentcall) {
201+
delete peers[currentcall.id];
202+
console.log("Removed closed call from screen sharing.", currentcall.id);
203+
});
200204
mediaStream.api.apply("sendScreenshare", {
201205
send: function(type, data) {
202206
//console.log("sent screenshare", data, peercall);

0 commit comments

Comments
 (0)