I have a simple HTML5 audio player, and its src set to an mp3 URL. The url isn't a streaming one, but it returns a file with a given content-length header field.
<audio id="track" controls="controls" autoplay="autoplay">
<source id="mp3source" src="https://example.com/20180823001012/20180823040001/channel1.mp3" type='audio/mpeg; codecs="mp3"' >
Your browser does not support the audio element.
</audio>
I would like to place the incoming audio data into a browser blob, and then provide it to the user as a downloadable browser blob URL.
I want to achieve this to provide the downloadable file in a different filename than the default (channel1.mp3 here).
See my previous question on this problem How can I control the filename when HTML5 audio is saved by the user?
I can achieve to set the filename in Opera (with a[download] attribute of an anchor link) and in Chromium too by the "title" attribute of the HTML5 audio element.
Maybe I can do the same in Firefox too, by using a browser blob.