WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Accessible YouTube Player in lightbox?

for

Number of posts in this thread: 3 (In chronological order)

From: Rick Hill
Date: Mon, Aug 26 2013 5:15PM
Subject: Accessible YouTube Player in lightbox?
No previous message | Next message →

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. As in:

http://simplyaccessible.com/article/keyboard-accessible-youtube-controls/

Or http://wac.osu.edu/examples/youtube-player-controls/
Or maybe https://github.com/nomensa/Accessible-Media-Player

And others.

Questions … anyone done this in a lightbox window? How to get the lightbox window to gain focus when it opens and keep the focus in the player window while open. How to not only provide access to the payer controls (play, volume, cc) but alos access to close the [player window and return focus to the appropriate location in the calling page?

-------------------------------------------------------------------
Rick Hill, Web CMS Administrator
Strategic Communications, UC Davis

From: Alastair Campbell
Date: Tue, Aug 27 2013 2:51AM
Subject: Re: Accessible YouTube Player in lightbox?
← Previous message | Next message →

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

From: Bourne, Sarah (ITD)
Date: Tue, Aug 27 2013 7:18AM
Subject: Re: Accessible YouTube Player in lightbox?
← Previous message | No next message

Alastair Campbell wrote:

> 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?

I found another ticket asking for captions in the API that had been merged into Issue 1723. It's status is "WontFix": " It's unfortunately not a matter of reconsidering the importance. This is a policy decision." (Oct 3, 2011)
https://code.google.com/p/gdata-issues/issues/detail?id23

[bad words redacted]

sb
Sarah E. Bourne
Director of Assistive Technology &
Mass.Gov Chief Technology Strategist
Information Technology Division
Commonwealth of Massachusetts
1 Ashburton Pl. rm 1601 Boston MA 02108
617-626-4502
= EMAIL ADDRESS REMOVED =
http://www.mass.gov/itd