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", "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 ". "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", "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", "HOME" => "Home",
"HELP" => "Help", "HELP" => "Help",
"ABOUT" => "About", "ABOUT" => "About",

@ -195,6 +195,8 @@ our %Lexicon = (
"NO_WEBCAM" => "Impossible d'accéder à votre webcam", "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 ". "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", "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", "HOME" => "Accueil",
"HELP" => "Aide", "HELP" => "Aide",
"ABOUT" => "À propos", "ABOUT" => "À propos",

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

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

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

Loading…
Cancel
Save