允许视频中的字幕 - HTML

时间:2015-07-25 20:56:36

标签: html video kaltura captions

我的网站使用指向使用Kaltura视频播放器的视频的链接。在Kaltura方面,视频'字幕出现。但是,在HTML端,当网站运行时,标题不会出现。是否有标记或其他内容可以添加到HTML中的这些视频链接以允许显示字幕?

1 个答案:

答案 0 :(得分:1)

<video width="360" height="203" id="captionvideo" controls="controls">
    <source src="myvideo.mp4" type="video/mp4">
    <source src="myvideo.webm" type="video/webm">   
    <track kind="subtitles" src="mymovidecatpion.srt" srclang="en" ></track>
</video>

和你的.srt文件......

0
00:00:00,1 --> 00:00:04
Caption line goes here

1
00:00:04 --> 00:00:07
Browser shall obey me!  HAHAHAHA

2
00:00:07 --> 00:00:10
Of course, we are so important because we help people understand TV in words.

3
00:00:10 --> 00:00:12
and is very educational for everybody anyways...

继续......