In Safari for iPad, how can I get the current position of a video using Javascript?

When the embedded video plays in the iPad browser, how can I get the current position hh:mm:ss (and possibly the player’s state) in Javascript?

0
source share
1 answer

If it is on a web page, you can do

 var vid = document.getElementById('videoid'); var time = vid.currentTime; 

as shown at http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#htmlmediaelement

+1
source

Source: https://habr.com/ru/post/1388691/


All Articles