var timer = setInterval(function () {
    var secs = ytplayer.getCurrentTime();
    var minutes = Math.floor(secs / 60);
    var seconds = Math.floor(secs % 60);
    var tsecs = ytplayer.getDuration();
    var tminutes = Math.floor(tsecs / 60);
    var tseconds = Math.floor(tsecs % 60);
    var time = minutes + ":" + seconds + " / " + tminutes + ":" + tseconds;
    document.getElementById('currenttime').innerHTML = time;
}, 1000);
This code does not work in firefox but it does in chrome and IE.
I checked with firebug and it says that the variables secs, minutes, seconds, tsecs, tminutes, tseconds and time are not defined.
I dont know how to fix this because I did use var to define them. Does anyone know what I have done wrong?
Thanks
 
     
     
    