I am getting a NaN result. Clearly something is not right. But I cannot figure is out what is wrong in the calculations. Heres the code:
var totalTime = video.duration;
var milliToHours = function (value) {
return value / 60 / 60;
}
milliToHours (totalTime);
// howerver it returns NaN in console