videojs-youtube icon indicating copy to clipboard operation
videojs-youtube copied to clipboard

Closed Captions Support

Open shatteredsite opened this issue 4 years ago • 3 comments

Right now I do not see closed captions support within the plugin. This is essential for Americans With Disabilities Act compliance, which is now being applied by law to websites in many instances. It is also important for many businesses.

shatteredsite avatar Jun 19 '20 14:06 shatteredsite

Yeah, it would be nice to have. Unfortunately, it doesn't seem like the youtube iframe api provides a list of available captions or a way to select one.

gkatsev avatar Jun 24 '20 05:06 gkatsev

@gkatsev There is a way to get it from what I see: https://stackoverflow.com/a/58435817/2339631

arnoldsimha avatar Aug 16 '20 09:08 arnoldsimha

While that is an official Google API, that doesn't seem to be part of the youtube iframe API, and so we're unlikely to implement it into videojs-youtube. However, it's definitely possible to write a Video.js plugin that's used in conjunction with videojs-youtube to grab these caption files.

gkatsev avatar Aug 17 '20 17:08 gkatsev