【发布时间】:2014-01-29 21:20:03
【问题描述】:
我尝试使用 track 元素,但它不起作用..如果我做错了什么请告诉我?
<video controls="controls" id="video1" width="450">
<source src="A taste of TED.mp4" type="video/mp4">
<track src="TED.vtt" kind="subtitles" srclang="en" label="English">
</video>
字幕文件(TED.vtt)如下所示:
WEBVTT
1
00:00:01.000 --> 00:00:10.000
This is the first line of text, displaying from 1-10 seconds
2
00:00:15.000 --> 00:00:20.000
And the second line of text
separated over two lines
【问题讨论】:
-
不是 100% 确定,但这可能会对您有所帮助。 storiesinflight.com/js_videosub
标签: html5-video subtitle