react-audio-player
react-audio-player copied to clipboard
controlsList - what is it?
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
For anyone coming across this in the future, it's an attribute on
I found the answer in Stack Overflow. The attribute is accepting nodownload
, nofullscreen
, and noremoteplayback
https://stackoverflow.com/a/48333012/4233158
The option to disable the download is mentioned in a previous question: controlsList={"nodownload"}
<ReactAudioPlayer
src={audioSource}
controls
controlsList={"nodownload"}
/>