- Notifications
You must be signed in to change notification settings - Fork3
ewwink/clappr-youtube-plugin
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
youtube plugin forClappr, added options to select playback quality and captions (CC)
- Add Playback Speed
- Add Subtitle Translation
- Add Show Hide Annotation
- Add Setting (Gear icon)
https://ewwink.github.io/clappr-youtube-plugin/
var playerElement = document.getElementById("player-wrapper");var ytid = '4hME3n8Lkbs'; // with CC //var ytid = '9ZXTBHqG6CA'; // no CCvar player = new Clappr.Player({ source: ytid, poster: 'https://i.ytimg.com/vi/'+ytid+'/hqdefault.jpg', height: 360, width: 640, plugins: [YoutubePlugin, YoutubePluginControl], YoutubeVars : {"languageCode":"en"}});player.attachTo(playerElement);