|
|
@ -600,16 +600,16 @@ function initVroom(room) { |
|
|
|
|
|
|
|
|
|
|
|
$('#name_local').css('background-color', peers.local.color); |
|
|
|
$('#name_local').css('background-color', peers.local.color); |
|
|
|
|
|
|
|
|
|
|
|
// Screen sharing is only suported on chrome desktop > 26
|
|
|
|
|
|
|
|
if ( !$.browser.webkit || $.browser.android || $.browser.versionNumber < 26 ) { |
|
|
|
|
|
|
|
$('#shareScreenLabel').remove(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// If browser doesn't support webRTC or dataChannels
|
|
|
|
// If browser doesn't support webRTC or dataChannels
|
|
|
|
if (!webrtc.capabilities.support || !webrtc.capabilities.supportDataChannel){ |
|
|
|
if (!webrtc.capabilities.support || !webrtc.capabilities.supportGetUserMedia || !webrtc.capabilities.supportDataChannel){ |
|
|
|
$('#noWebrtcSupport').modal('show'); |
|
|
|
$('#noWebrtcSupport').modal('show'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Hide screen sharing btn if not supported
|
|
|
|
|
|
|
|
if (!webrtc.capabilities.supportScreenSharing){ |
|
|
|
|
|
|
|
$('#shareScreenLabel').remove(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Return the number of peers in the room
|
|
|
|
// Return the number of peers in the room
|
|
|
|
function countPeers(){ |
|
|
|
function countPeers(){ |
|
|
|
var count = Object.keys(peers).length; |
|
|
|
var count = Object.keys(peers).length; |
|
|
|