jquery.srt

jquery.srt.js

play srt subtitles next to your <video> element

Example:


<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.srt.js"></script>

<video src="http://example.com/video.ogv" id="video" controls>
</video>
<div class="srt"
data-video="video"
data-srt="http://example.com/video.srt" />
jquery.srt.js will try to load subtitles in all elements with 'srt' class.
'data-video' atribute is used to link to the related video,
if no data-srt is provided, the contents of the div is parsed as srt.

Download: jquery.srt.js

posted @ 2010-01-25 22:17  与时俱进  阅读(474)  评论(0编辑  收藏  举报
友情链接:同里老宅院民居客栈