[Ogg a11y] <video> + srt
Silvia Pfeiffer
silviapfeiffer1 at gmail.com
Fri Dec 5 22:24:59 PST 2008
Hi j,
I think this is very exciting indeed!!
I am wondering about the syntax you chose. What do you think about
something like this:
<video src="http://example.com/video.ogv" controls>
<text category="CC" lang="en" type="text/x-srt" src="caption.srt"></text>
<text category="SUB" lang="de" type="application/ttaf+xml"
src="german.dfxp"></text>
<text category="SUB" lang="jp" type="application/smil"
src="german.smil"></text>
<text category="SUB" lang="fr" type="text/x-srt"
src="translation_webservice/fr/caption.srt"></text>
</video>
By making the "text" element (or textarea or whatever we want to call
it) a subelement of "video", it is associated directly.
Also, in this example, it is easy to see that there are english
captions, and german, french and japanese subtitles, which the browser
could then offer in the interface.
They all come in different text formats with different capabilities
(which is certainly an issue for browser support, but just an example
for how the support could work).
I'd like to propose this as an approach to WHATWG, but if anyone has
some input at this time and we can improve on the syntax, that would
be awesome.
Cheers,
Silvia.
On Sat, Dec 6, 2008 at 1:01 AM, <j at v2v.cc> wrote:
> 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
>
> _______________________________________________
> Accessibility mailing list
> Accessibility at xiph.org
> http://lists.xiph.org/mailman/listinfo/accessibility
>
More information about the Accessibility
mailing list