Support audio only fallback

Fix #46
master
Daniel Berteaud 11 years ago
parent 05c0851d31
commit 5e664660dd
  1. 1
      lib/Vroom/I18N/en.pm
  2. 2
      lib/Vroom/I18N/fr.pm
  3. 3
      public/css/vroom.css
  4. 6
      public/vroom.pl
  5. 14
      templates/default/join.html.ep

@ -182,6 +182,7 @@ our %Lexicon = (
"NO_WEBCAM" => "Cannot access your webcam",
"CANT_ACCESS_WEBCAM" => "We couldn't access your webcam. Please check it's connected, powered on, and that you've ".
"allowed the browser to access it, then reload this page",
"CLICK_IF_NO_WEBCAM" => "If you don't have a webcam, click the following link, you'll be able to join the room with audio only",
"HOME" => "Home",
"HELP" => "Help",
"ABOUT" => "About",

@ -195,6 +195,8 @@ our %Lexicon = (
"NO_WEBCAM" => "Impossible d'accéder à votre webcam",
"CANT_ACCESS_WEBCAM" => "Nous n'avons pas pu accéder à votre webcam, vérifiez qu'elle soit bien connectée, allumée, et que ".
"vous avez autorisé le navigateur à y accéder, puis raffraichissez cette page",
"CLICK_IF_NO_WEBCAM" => "Vous n'avez pas de webcam, cliquez sur le lien ci-dessous, vous pourrez rejoindre la conférence " .
"en audio uniquement",
"HOME" => "Accueil",
"HELP" => "Aide",
"ABOUT" => "À propos",

@ -176,6 +176,9 @@
#timeCounter {
display: none;
}
.bigIcon {
color: black;
}
#navBarLogo {
padding-top: 2px;
float: left;

@ -733,6 +733,7 @@ post '/password/(:room)' => sub {
get '/(*room)' => sub {
my $self = shift;
my $room = $self->stash('room');
my $video = $self->param('video') || '1';
# Redirect to lower case
if ($room ne lc $room){
$self->redirect_to($self->get_url('/') . lc $room);
@ -782,8 +783,9 @@ get '/(*room)' => sub {
}
# Now display the room page
$self->render('join',
moh => $self->choose_moh(),
turnPassword => $data->{token}
moh => $self->choose_moh(),
turnPassword => $data->{token},
video => $video
);
};

@ -223,7 +223,7 @@
<p><%=l 'VROOM_CHROME_EXTENSION' %></p>
<a href="https://chrome.google.com/webstore/detail/<%= $config->{chromeExtensionId} %>" target="_blank">
<h1>
<span class="glyphicon glyphicon-download-alt">
<span class="glyphicon glyphicon-download-alt bigIcon">
</span>
</h1>
</a>
@ -278,6 +278,14 @@
<p><%=l 'CANT_ACCESS_WEBCAM' %></p>
<center>
<img src="<%= $self->get_url('/') %>img/webcam.png" alt="Webcam"/>
<br>
<p><%=l 'CLICK_IF_NO_WEBCAM' %><p>
<a href="<%= $self->get_url('/') . $room %>?video=false">
<h1>
<span class="glyphicon glyphicon-headphones bigIcon">
</span>
</h1>
</a>
</center>
</div>
</div>
@ -441,11 +449,15 @@
threshold: -20
},
media: {
<% if ($video eq 'false'){ %>
video: false,
<% } else{ %>
video: {
mandatory: {
maxFrameRate: 15,
}
},
<% } %>
audio: true
}
});

Loading…
Cancel
Save