The main div isn't hidden anymore on XS screens

And since a long time
master
Daniel Berteaud 10 years ago
parent 56d4d40b10
commit bc544256da
  1. 5
      public/js/vroom.js

@ -865,9 +865,6 @@ function initVroom(room) {
el.addClass('selected'); el.addClass('selected');
mainVid = el.attr('id'); mainVid = el.attr('id');
// Cut the volume the corresponding preview // Cut the volume the corresponding preview
// but only on screen > 768
// On smaller screens, the main video is hidden
if ($(window).width() > 768){
$('#webRTCVideo video').each(function(){ $('#webRTCVideo video').each(function(){
if ($(this).get(0).paused){ if ($(this).get(0).paused){
$(this).get(0).play(); $(this).get(0).play();
@ -878,9 +875,9 @@ function initVroom(room) {
$('#mainVideo video').get(0).volume = 1; $('#mainVideo video').get(0).volume = 1;
} }
else { else {
// If we put our own video in the main div, we need to mute it
$('#mainVideo video').get(0).volume = 0; $('#mainVideo video').get(0).volume = 0;
} }
}
$('#mainVideo').show(200); $('#mainVideo').show(200);
} }
}, wait); }, wait);

Loading…
Cancel
Save