Skip to content

poorgeek/a11y-youtube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Requirements

Sample Usage

Me at the zoo – First YouTube video

$(document).ready(function() {
$(‘a.video-link’).a11y_youtube();
});

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

Frequently Asked Questions

Why do you turn on captions by default?

Why use the embedded player rather than the chromeless player?
Currently the YouTube API doesn’t support enabling/disabling captions in the chromeless player. You can follow this ticket on

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published