WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Accessible YouTube Player in lightbox?

for

From: Alastair Campbell
Date: Aug 27, 2013 2:51AM


Rick Hill wrote:

> We need to display captioned YouTube videos in a lightbox (not just
> embedded in the page).
>
> Looks like the only solution is to display the player tools external to
> the YouTube player through the YouTube API to make them accessible.


Last time we (Nomensa) updated the media player Youtube didn't provide
captions via the API, so we could only include captions for local files.

I can't actually tell from the bug what the status is, but perhaps that is
fixed now?
https://code.google.com/p/gdata-issues/issues/detail?idD4&can=1&q=label%3AAPi-YouTube%20captions&colspec=API%20ID%20Type%20Status%20Priority%20Stars%20Summary

I don't think we've tried it in a lightbox, but you are essentially just
combining two difficult to-do things in one interface!

Once you have the player sorted out, focus on the lightbox, a couple of
examples from recent threads:
http://whatsock.com/tsg/Coding%20Arena/Modals/Modal%20(Internal%20Content%20Shell)/demo.htm
http://examples.simplyaccessible.com/modal.js/

Hth,

-Alastair