javascript - safari cannot get the duration of the video.
phpcn_u1582
phpcn_u1582 2017-06-05 11:12:52
0
2
898

Safari cannot get the duration of the video. Is there a good solution for Infinity?

phpcn_u1582
phpcn_u1582

reply all(2)
过去多啦不再A梦

document.getElementById("Video").duration;

Just tried this and it works

某草草
video.ondutationchange = function(){
    //video读取信息也是要时间的
};
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template