kevin8222
posted this
14 February 2023
here's a really simple way to do it - and you can host the mp3 with dropbox!
Get the URL from Dropbox (right-click and select "copy dropbox link", or if you're doing it via a browser, select the file and a "copy link" option should appear). Paste this somewhere handy. Then go to NicePage, add an html block and paste the code below into it:
<source src="https://www.dropbox.com/s/sr12lfymr051gbf/this_kiss_mix_1.mp3?raw=1" type="audio/mpeg" video.controlslist="noplaybackrate nodownload">
Whoops! Seems your browser does not support the audio element. You missed out.
</audio></center>
Make sure you delete the ?dl=0 at the end of the URL and use ?raw=1 or it won't work.
It's not exactly beautiful, but it works! In the code above, I added extra commands to remove the option to play back at different speeds and allow download. You can also change it from an MP3 to another format, I tried it with m4a but it seems some browsers can't read that format, which is why I converted my song to an MP3.
here's a really simple way to do it - and you can host the mp3 with dropbox!
Get the URL from Dropbox (right-click and select "copy dropbox link", or if you're doing it via a browser, select the file and a "copy link" option should appear). Paste this somewhere handy. Then go to NicePage, add an html block and paste the code below into it:
<source src="https://www.dropbox.com/s/sr12lfymr051gbf/this_kiss_mix_1.mp3?raw=1" type="audio/mpeg" video.controlslist="noplaybackrate nodownload">
Whoops! Seems your browser does not support the audio element. You missed out.
</audio></center>
**Make sure you delete the ?dl=0 at the end of the URL and use ?raw=1 or it won't work.**
It's not exactly beautiful, but it works! In the code above, I added extra commands to remove the option to play back at different speeds and allow download. You can also change it from an MP3 to another format, I tried it with m4a but it seems some browsers can't read that format, which is why I converted my song to an MP3.
Last edited 14 February 2023 by kevin8222