sampotts / plyr

A simple HTML5, YouTube and Vimeo player
https://plyr.io
MIT License
26.58k stars 2.93k forks source link

Append controls on the existing player #1315

Open johnlanz opened 5 years ago

johnlanz commented 5 years ago

were using default controls: const controls = ['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'fullscreen']; Now how can we append additional controls like: const anyText = <div class="anytext"> anytext </div> if that's not possible where can we find the default html version of controls? like custom html version of controls.md but the defaults ones.

robertkraig commented 5 years ago

It's actually here, https://github.com/sampotts/plyr/blob/master/controls.md and it's hard to miss if you don't read the documentation well. I didn't see this myself. I had to search issues until someone said look there at the url I listed. Someone needs to do a P.R. on that README.md to improve the annotation markup to make the html template more important, since this is very important to be able to modify/change/customize.

image