A jQuery plug-in that provides an accessible wrapper around a YouTube video using the YouTube API.
See the wiki for more information.
Note: This plug-in is based on Trevor Davis’ excellent YouTube-Chromeless jQuery plug-in.
- jQuery: http://jquery.com/
- SWFObject: http://code.google.com/p/swfobject/
- Accessible YouTube Video Plugin: http://github.com/poorgeek/a11y-youtube
Me at the zoo – First YouTube video
$(document).ready(function() {
$(‘a.video-link’).a11y_youtube();
});
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