|
|
@ -358,11 +358,13 @@ function initVroom(room) { |
|
|
|
wait = 200; |
|
|
|
wait = 200; |
|
|
|
// Play all preview
|
|
|
|
// Play all preview
|
|
|
|
// the one in the mainVid was paused, with a reduced opacity
|
|
|
|
// the one in the mainVid was paused, with a reduced opacity
|
|
|
|
// This isn't working on FF for the moment
|
|
|
|
// Both preview and main vid freezes on FF when doing so :-/
|
|
|
|
if ($.browser.webkit){ |
|
|
|
if ($.browser.webkit){ |
|
|
|
$('#webRTCVideo video').each(function(){ |
|
|
|
$('#webRTCVideo video').each(function(){ |
|
|
|
$(this)[0].play(); |
|
|
|
if ($(this).get(0).paused){ |
|
|
|
|
|
|
|
$(this).get(0).play(); |
|
|
|
$(this).css('opacity', '1'); |
|
|
|
$(this).css('opacity', '1'); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -390,9 +392,11 @@ function initVroom(room) { |
|
|
|
// On smaller screens, the main video is hidden
|
|
|
|
// On smaller screens, the main video is hidden
|
|
|
|
if ($.browser.webkit && $(window).width() > 768){ |
|
|
|
if ($.browser.webkit && $(window).width() > 768){ |
|
|
|
$('#webRTCVideo video').each(function(){ |
|
|
|
$('#webRTCVideo video').each(function(){ |
|
|
|
$(this)[0].play(); |
|
|
|
if ($(this).get(0).paused){ |
|
|
|
|
|
|
|
$(this).get(0).play(); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
el[0].pause(); |
|
|
|
el.get(0).pause(); |
|
|
|
el.css('opacity', '.3'); |
|
|
|
el.css('opacity', '.3'); |
|
|
|
} |
|
|
|
} |
|
|
|
$('#mainVideo').show(200); |
|
|
|
$('#mainVideo').show(200); |
|
|
|