Don't pause preview on small screens, as there's no main video div

master
Daniel Berteaud 11 years ago
parent bf6f1de4f3
commit 05c0851d31
  1. 5
      public/js/vroom.js

@ -386,8 +386,9 @@ function initVroom(room) {
el.addClass('selected'); el.addClass('selected');
mainVid = el.attr('id'); mainVid = el.attr('id');
// Pause the corresponding preview // Pause the corresponding preview
// and reduce opacity // and reduce opacity, but only on screen > 768
if ($.browser.webkit){ // On smaller screens, the main video is hidden
if ($.browser.webkit && $(window).width() > 768){
$('#webRTCVideo video').each(function(){ $('#webRTCVideo video').each(function(){
$(this)[0].play(); $(this)[0].play();
}); });

Loading…
Cancel
Save