【发布时间】:2010-07-27 02:55:15
【问题描述】:
我有一个 ID 为“liveVideo”的<video> 标签。如何以秒为单位检索视频的长度?
谢谢,
大卫!
【问题讨论】:
-
是的,
标签: javascript jquery html html5-video
我有一个 ID 为“liveVideo”的<video> 标签。如何以秒为单位检索视频的长度?
谢谢,
大卫!
【问题讨论】:
标签: javascript jquery html html5-video
media.duration查看规格http://www.w3.org/TR/html5/video.html#offsets-into-the-media-resource
【讨论】:
$('#liveVideo').attr('duration') // will return the full length of the movie
【讨论】: