Enable download button for html5 audio player in chrome

I have an audio element on a page that is dynamically added using javascript in dom.

The html output is as follows:

        <audio preload="auto" controls="controls">
            <source src="https://urlofmp3.mp3" type="audio/mp3">
        </audio>

when I look at this sound element on the page, it looks like this: html5 audio tag

As I understand it, Chrome should automatically put the download button on the right side ... but for some reason this is not the case. I managed to find many sites telling me how to disable the download button, but is there a way to explicitly enable it?

+4
source share

Source: https://habr.com/ru/post/1684770/


All Articles