mirror of
https://github.com/dani/vroom.git
synced 2024-06-30 07:13:41 +02:00
parent
003d094625
commit
68228482d6
|
@ -1269,7 +1269,7 @@ function initVroom(room) {
|
||||||
id = id + '_screen';
|
id = id + '_screen';
|
||||||
}
|
}
|
||||||
// Or the peer itself
|
// Or the peer itself
|
||||||
else if (peer && peers[peer.id]){
|
else if (peer && peers[peer.id] && id != 'local'){
|
||||||
delete peers[peer.id];
|
delete peers[peer.id];
|
||||||
}
|
}
|
||||||
$("#peer_" + id).hide(300);
|
$("#peer_" + id).hide(300);
|
||||||
|
@ -1504,10 +1504,10 @@ function initVroom(room) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
peers.local.screenShared = false;
|
||||||
webrtc.stopScreenShare();
|
webrtc.stopScreenShare();
|
||||||
$('#shareScreenLabel').removeClass('btn-danger');
|
$('#shareScreenLabel').removeClass('btn-danger');
|
||||||
$.notify(locale.SCREEN_UNSHARED, 'success');
|
$.notify(locale.SCREEN_UNSHARED, 'success');
|
||||||
peers.local.screenShared = false;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user