react-audio-player icon indicating copy to clipboard operation
react-audio-player copied to clipboard

controlsList - what is it?

Open adventmedia opened this issue 5 years ago • 3 comments

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

adventmedia avatar Apr 23 '19 21:04 adventmedia

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

readeral avatar Oct 08 '19 12:10 readeral

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

bepitulaz avatar Apr 29 '21 14:04 bepitulaz

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

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

ucin3d avatar Jul 29 '21 02:07 ucin3d