Skip to content
poorgeek edited this page Mar 2, 2011 · 1 revision

A jQuery plug-in that provides an accessible wrapper around a YouTube video using the YouTube API.

Note: This plug-in is based on Trevor Davis’ excellent YouTube-Chromeless jQuery plug-in.

Requirements

  • jQuery: http://jquery.com/
  • SWFObject: http://code.google.com/p/swfobject/
  • Accessible YouTube Video Plugin: http://github.com/poorgeek/a11y-youtube

Sample Usage
$(document).ready(function() { $('a.video-link').a11y_youtube(); });
<a href="http://www.youtube.com/watch?v=jNQXAC9IVRw" class="video-link">Me at the zoo - First YouTube video</a>

Options

videoWidth : ‘640’, // width of the embedded player
videoHeight : ‘390’, // height of the embedded player
videoIdBase : ‘a11y-youtube’, // string base to use for each video id
useHTTPS : false, // true if embedding the video on a page behind SSL
protectPrivacy : false, // true to use YouTube’s privacy enhanced mode
showPause : true, // false to hide the pause button
showVideoNav : true, // false to hide the forward and rewind controls
showVolume : true, // false to hide volume controls
showReplay : false, // true to show replay controls
showMute : true, // false to hide mute controls