justinmc / react-audio-player

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

controlsList - what is it? #59

Open adventmedia opened 5 years ago

adventmedia commented 5 years ago

The docs mentions a prop "controlsList" but it is not documented in the audio tag documentation. Also the player has a ... menu with "Download" as an option which the client would like to remove. Assuming that "controlsList" would allow this… some documentation would be helpful

readeral commented 5 years ago

For anyone coming across this in the future, it's an attribute on

bepitulaz commented 3 years ago

I found the answer in Stack Overflow. The attribute is accepting nodownload, nofullscreen, and noremoteplayback https://stackoverflow.com/a/48333012/4233158

ucin3d commented 3 years ago

The option to disable the download is mentioned in a previous question: controlsList={"nodownload"}

<ReactAudioPlayer src={audioSource}
controls controlsList={"nodownload"}
/>