[Ogg a11y] <video> + srt
j at v2v.cc
j at v2v.cc
Fri Dec 5 06:01:03 PST 2008
Hi,
just wanted to let you know of a small javascript script i put up
recently that allows you to play srt files along a <video>.
you just point a div to an srt file and link it to the video.
<video src="http://example.com/video.ogv" id="video" controls>
<div class="srt" data-video="video" data-srt="http://example.com/video.srt" />
example and js lib at http://v2v.cc/~j/jquery.srt/
instead of <video> its also possible to use another element that
provides the right js api, this could be i.e. cortado with this patch
applied: https://bugzilla.wikimedia.org/show_bug.cgi?id=16519
more precisely only currentTime is used right now
document.getElementById(videoId).currentTime
j
More information about the Accessibility
mailing list