问题
When an embedded video is playing in an iPad browser, how can I retrieve the current hh:mm:ss
position (and perhaps player state) in Javascript?
回答1:
If it is in a webpage, you can do
var vid = document.getElementById('videoid');
var time = vid.currentTime;
as seen in http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#htmlmediaelement
来源:https://stackoverflow.com/questions/6442552/in-safari-for-ipad-how-can-i-get-the-current-video-position-via-javascript