Plyr: Disable audio download button

Created on 24 Mar 2019  路  3Comments  路  Source: sampotts/plyr

Is there any option i can disable the download button from the audio player menu??

Most helpful comment

Thanks, I disabled it with controlsList="nodownload" attribute

All 3 comments

It's not enabled by default (presuming you mean the 'download' option in the controls array?). Do you have a codepen, codesandbox, or just somewhere I can debug. I'm working blind 馃憤

Thanks, I disabled it with controlsList="nodownload" attribute

It's not enabled by default (presuming you mean the 'download' option in the controls array?). Do you have a codepen, codesandbox, or just somewhere I can debug. I'm working blind 馃憤

Sorry to answer this old post, but a question arose that I couldn't solve.

I defined the download button in the settings, however at some point I would like to hide that button.
Would it be possible to do this via HTML? or I would have to have for example two separate codes, 1 with the download option and one without.

If you have any code on this issue could you show?

Thank you

P.S.:
Example, showing the download button in the player when the urls is set.

<audio id="player" class="js-player" controls data-plyr-config='{ "urls": {"download": "test.mp3"}}'>
     <source type="audio/mp3" src="https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.mp3" />
     <source type="audio/ogg" src="https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.ogg" >
</audio>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

onigetoc picture onigetoc  路  3Comments

nam-co picture nam-co  路  4Comments

Skwai picture Skwai  路  4Comments

Antonio-Laguna picture Antonio-Laguna  路  3Comments

Lycanthrope picture Lycanthrope  路  4Comments