Work arround for FF when removing the main video

master
Daniel Berteaud 11 years ago
parent dfe38a654d
commit 003d094625
  1. 4
      public/js/vroom.js

@ -1280,6 +1280,10 @@ function initVroom(room) {
if (mainVid == id + '_video_incoming' || mainVid == id + '_incoming' || mainVid == id + 'Screen'){ if (mainVid == id + '_video_incoming' || mainVid == id + '_incoming' || mainVid == id + 'Screen'){
$('#mainVideo').hide(500); $('#mainVideo').hide(500);
setTimeout(function(){ setTimeout(function(){
if ($.browser.mozilla && $('#mainVideo video').length > 0){
$($('#mainVideo video').get(0)).attr('src', $($('#mohPlayer').get(0)).attr('src'));
$('#mainVideo video').get(0).pause();
}
$('#mainVideo').html(''); $('#mainVideo').html('');
}, 500); }, 500);
mainVid = false; mainVid = false;

Loading…
Cancel
Save