2

我有一个<video>ID 为“liveVideo”的标签。如何以秒为单位检索视频的长度?

谢谢,

大卫!

4

2 回答 2

5

media.duration检查规范http://www.w3.org/TR/html5/video.html#offsets-into-the-media-resource

于 2010-07-27T02:59:08.837 回答
3
$('#liveVideo').attr('duration') // will return the full length of the movie
于 2010-07-27T03:04:00.907 回答