开发者

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜