Permalink
Browse files

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 ff5bc8a03f05edc6eabcde49233ca3a6c9eb8099
Showing with 6 additions and 2 deletions.
  1. +6 −2 js/bigvideo.js
View
@@ -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');

0 comments on commit ff5bc8a

Please sign in to comment.