jonathantneal/media-player

Video/Audio Controls ignore data-options settings

Closed this issue · 2 comments

The controls on the demo pages ignore the settings set in the data-options settings. Is there a way to fix this? The playlist demo for instance has download set to false, but it still shows in Safari, Firefox and Chrome.

I’ll look into this.

There isn‘t an option to read from a data-options attribute. You can implement it yourself, though, as I did in the demo:

new MediaPlayer(YOUR_DOM_ELEMENT, JSON.parse(YOUR_DOM_ELEMENT.getAttribute('data-options')));

Also, in the playlist demo, I do not have the download set to not display. Those options are not really doing anything.