Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update bigvideo.js
Fixes compatibility with VideoJS 4.0
  • Loading branch information
julianxhokaxhiu committed May 15, 2013
1 parent 8589e5c commit d6c7fe6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/bigvideo.js
Expand Up @@ -145,7 +145,7 @@
e.preventDefault();
playControl('toggle');
});
player.addEvent('timeupdate', function() {
player.on('timeupdate', function() {
if (!isSeeking && (player.currentTime()/player.duration())) {
var currTime = player.currentTime();
var minutes = Math.floor(currTime/60);
Expand Down Expand Up @@ -256,7 +256,7 @@
updateSize();
});

player.addEvent('loadedmetadata', function(data) {
player.on('loadedmetadata', function(data) {
if (document.getElementById('big-video-vid_flash_api')) {
// use flash callback to get mediaAspect ratio
mediaAspect = document.getElementById('big-video-vid_flash_api').vjs_getProperty('videoWidth')/document.getElementById('big-video-vid_flash_api').vjs_getProperty('videoHeight');
Expand All @@ -272,7 +272,7 @@
vidDur = durMinutes+':'+durSeconds;
});

player.addEvent('ended', function() {
player.on('ended', function() {
if (settings.doLoop) {
player.currentTime(0);
player.play();
Expand Down

0 comments on commit d6c7fe6

Please sign in to comment.