How can I get the current playing time from an embedded video on a webpage?
How can I get the current playing time from an embedded video on a webpage? Is there simply an attribute that can be obtained using JavaScript from one of the common embedded video players? Or do I need to do a work-arou开发者_Python百科nd like make my own pause and play buttons and keep track of time manually while feeding the play/pause commands to the video using JavaScript? The latter is much more ugly in my opinion. Other solutions?
The html5 video tag provides some decent support for this kind of thing.
The following page gives some decent ideas: http://www.broken-links.com/2009/10/06/building-html5-video-controls-with-javascript/
精彩评论