Also correctly fade out the main video when we unshare our screen

master
Daniel Berteaud 11 years ago
parent 811f61fab2
commit 7ca297267f
  1. 2
      public/js/vroom.js

@ -952,7 +952,7 @@ function initVroom(room) {
setTimeout(function(){ setTimeout(function(){
$("#peer_" + id).remove(); $("#peer_" + id).remove();
}, 300); }, 300);
if (mainVid == id + '_video_incoming' || mainVid == id + '_incoming'){ if (mainVid == id + '_video_incoming' || mainVid == id + '_incoming' || mainVid == id + 'Screen'){
$('#mainVideo').hide(500); $('#mainVideo').hide(500);
setTimeout(function(){ setTimeout(function(){
$('#mainVideo').html(''); $('#mainVideo').html('');

Loading…
Cancel
Save