diff --git a/lib/Vroom/I18N/en.pm b/lib/Vroom/I18N/en.pm index 16dafdb..676ca24 100644 --- a/lib/Vroom/I18N/en.pm +++ b/lib/Vroom/I18N/en.pm @@ -57,6 +57,10 @@ our %Lexicon = ( "ERROR_MAIL_INVALID" => "Please enter a valid email address", "CANT_SEND_TO_s" => "Couldn't send message to %s", "SCREEN_s" => "%s's screen", + "BROWSER_NOT_SUPPORTED" => "Browser not supported", + "NO_WEBRTC_SUPPORT" => "Sorry, but the video conference will not workd because your web browser doesn't have the " . + "required functionnalities. We recommand you download one of the following browsers " . + "which support the latest web technologies required to use VROOM", "HOME" => "Home", "HELP" => "Help", "ABOUT" => "About", diff --git a/lib/Vroom/I18N/fr.pm b/lib/Vroom/I18N/fr.pm index f4f6f57..59de38c 100644 --- a/lib/Vroom/I18N/fr.pm +++ b/lib/Vroom/I18N/fr.pm @@ -63,6 +63,11 @@ our %Lexicon = ( "ERROR_MAIL_INVALID" => "Veuillez saisir une adresse email valide", "CANT_SEND_TO_s" => "Le message n'a pas pu être envoyé à %s", "SCREEN_s" => "Écran de %s", + "BROWSER_NOT_SUPPORTED" => "Navigateur non supporté", + "NO_WEBRTC_SUPPORT" => "Désolé, la vidéo conférence ne fonctionnera pas car votre navigateur " . + "ne dispose pas des fonctions nécessaires. Nous recommandons de télécharger " . + "un des navigateurs suivants, qui supportent les dernières technologies nécessaires " . + "à l'utilisation de VROOM", "HOME" => "Accueil", "HELP" => "Aide", "ABOUT" => "À propos", diff --git a/public/js/vroom.js b/public/js/vroom.js index 2a7d250..5ac30ac 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -70,6 +70,11 @@ function initVroom(room) { $("#shareScreenLabel").addClass('disabled'); } + // If browser doesn't support webRTC or dataChannels + if (!webrtc.capabilities.support || !webrtc.capabilities.dataChannel){ + $('#noWebrtcSupport').modal('show'); + } + // Escape entities function stringEscape(string){ string = string.replace(/[\u00A0-\u99999<>\&]/gim, function(i) { diff --git a/templates/default/join.html.ep b/templates/default/join.html.ep index 795a936..1001c89 100644 --- a/templates/default/join.html.ep +++ b/templates/default/join.html.ep @@ -81,6 +81,42 @@ +