Permalink
Browse files

Update bigvideo.js

Fixes compatibility with VideoJS 4.0
  • Loading branch information...
julianxhokaxhiu committed May 15, 2013
1 parent 8589e5c commit d6c7fe6912e4b4cd9cc4ab574388f3abcca3b67d
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/bigvideo.js
View
@@ -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);
@@ -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');
@@ -272,7 +272,7 @@
vidDur = durMinutes+':'+durSeconds;
});
- player.addEvent('ended', function() {
+ player.on('ended', function() {
if (settings.doLoop) {
player.currentTime(0);
player.play();

0 comments on commit d6c7fe6

Please sign in to comment.