From ae0f27e89d5977952b6241a7f3e59a3446abd244 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Thu, 23 Oct 2014 13:25:08 +0200 Subject: [PATCH] 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. --- static/js/directives/screenshare.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/directives/screenshare.js b/static/js/directives/screenshare.js index 9bb5d4d0..06017928 100644 --- a/static/js/directives/screenshare.js +++ b/static/js/directives/screenshare.js @@ -197,6 +197,10 @@ define(['jquery', 'underscore', 'text!partials/screenshare.html', 'text!partials return; } peers[peercall.id] = true; + peercall.e.one("closed", function(event, currentcall) { + delete peers[currentcall.id]; + console.log("Removed closed call from screen sharing.", currentcall.id); + }); mediaStream.api.apply("sendScreenshare", { send: function(type, data) { //console.log("sent screenshare", data, peercall);