justinmc / react-audio-player

A simple React wrapper on the HTML5 audio tag
MIT License
587 stars 103 forks source link

feat(controlsList): passing through Chrome's controlsList attribute #40

Closed uncleramsay closed 7 years ago

uncleramsay commented 7 years ago

Google Chrome allows an attribute 'controlsList', which allows you to blacklist certain controls, like the download button. This change passes the attribute through so that it can be used with ReactAudioPlayer. https://googlechrome.github.io/samples/media/controlslist.html

Originally filed in #35, but I closed that one since React didn't support the attribute. However, support was added in 15.6.2, so this should be good now.

justinmc commented 7 years ago

Thanks for following up on this! Works for me locally and the PR looks perfect. I'll go ahead and merge this and then make a new release shortly.