Safari cannot get the duration of the video. Is there a good solution for Infinity?
document.getElementById("Video").duration;
Just tried this and it works
video.ondutationchange = function(){ //video读取信息也是要时间的 };
document.getElementById("Video").duration;
Just tried this and it works