Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update bigvideo.js
When the player is in Flash mode (NOT HTML5) the volume API will not work until Flash is initialized.
This could happen on slow computers running old IE (but also Firefox < 4.0).
  • Loading branch information
julianxhokaxhiu committed May 15, 2013
1 parent d6c7fe6 commit ff5bc8a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/bigvideo.js
Expand Up @@ -193,11 +193,15 @@
isPlaying = true;
if (isAmbient) {
$('#big-video-control-container').css('display','none');
player.volume(0);
player.ready(function(){
player.volume(0);
});
doLoop = true;
} else {
$('#big-video-control-container').css('display','block');
player.volume(defaultVolume);
player.ready(function(){
player.volume(defaultVolume);
});
doLoop = false;
}
$('#big-video-image').css('display','none');
Expand Down

0 comments on commit ff5bc8a

Please sign in to comment.