Hi I'am using a html5 video player i want to get a time duration of each video in my playlist array. Below is the code i'am using but it shows the NaN in console. Please Help Me...Thank's for all in advanced.
$.each(self._playlist.videos_array, function(key ) {
if(1) {
self.dummy_video = $("<video />");
console.log(self._playlist.videos_array[key].Levels[0].mp4);
self.dummy_video.attr('src', self._playlist.videos_array[key].Levels[0].mp4);
//self.dummy_video.load();
//self.dummy_video[0].play();
//self.dummy_video[0].pause();
var video = self.dummy_video.get(0);
console.log(video.duration);
}
});