From 89baa452ab2b0e2891488e214f48ea33fafa894f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 15 Feb 2015 21:53:22 +0100 Subject: [PATCH] Disable screen sharing on mobile platform As on Android devices (some at least) it seems to report it's available but do not work --- public/js/vroom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/vroom.js b/public/js/vroom.js index f384612..b914d6d 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -605,8 +605,8 @@ function initVroom(room) { $('#noWebrtcSupport').modal('show'); } - // Hide screen sharing btn if not supported - if (!webrtc.capabilities.supportScreenSharing){ + // Hide screen sharing btn if not supported, disable it on mobile + if (!webrtc.capabilities.supportScreenSharing || !$.browser.desktop){ $('#shareScreenLabel').remove(); }