I'm looking into implementing adaptive and progressive audio streaming in the browser, with no plugins. MSE is the HTML5 API I was waiting for, available in FF 42, but it seems that the audio format support in Firefox is not there?... mp3 audio is not working when using the MSE APIs.
Doesn't Firefox support mp3? from MDN list of supported formats ( -US/docs/Web/HTML/Supported_media_formats) it implies that mp3 support should be there if the OS supports it - and the OS I am testing on (OSX) does support it.
The first key thing to note on MSE (Media Source Extension) is that it does not necessarily support all media formats supported by the browser's Audio Element. To illustrate this, although Firefox will play mp3 file when fed directly to the browser or directly to an Audio element, it will not play the same mp3 file if you feed it into a media source buffer.
Now, which media format are actually supported by Firefox' MSE implementation? the answer is that as of Firefox 42 only fMP4 (Fragmented MP4) is supported by default. webm is also supported, but not by default and your users will have to turn it on manually through Firefox' about:config page. The fMP4 mimeType to feed the Media Source object when creating a new buffer is: audio/mp4; codecs="mp4a.40.2"
And if you're wondering what the heck is fMP4, it is a standard which is part of the MPEG-4 standard, more specifically part 12: "ISO Base Media File Format (ISOBMFF) using non-multiplexed audio/video". Look it up if you're interested in more details.
i wrote something to encapsulate mp3 inside an mp4 on the fly in javascript, specifically to get this very thing working in firefox. i only needed it for an 128kbps stream, so this only works for that specific bitrate, with no album art. in case anyone else might find this useful:
Have you tried to go in about:config and tweaking the parameters dealing with the codecs supported by the MediaSource API? I have switches for MP4 and webm. Not sure it would help for MP3, but it may be worth giving it a try.
Hello I was hoping that I could get help with ad music that play whenever I open a new webside. It happens if I want to open a new website after being on the previous website after about a minute. I identify the source, I believe thanks to internet download manager at: _progressive_daytime_package/sounds/lc_corkpop.mp3. I am no longer subscribed to publishers clearing house btw and I tried many solutions here such as the adblock and I did the trick, "about:config" & "plugins.click_to_play" And I also did an Anti-Malware scan with no such luck. The good new - if you can call it that is that it only happens whenever I used firefox and not my other browsers.I hope I cane get a solution to this.
The easy option is to add the site into the exceptions list so that if the problem caused is due to pop-ups, they shall be resolved. If not, then I suggest to you to go ahead and try out resetting firefox by :
The problem you're facing is due to permission given to the pop-ups. Blocking all pop-ups disables such features. To allow specific websites to use pop-ups, while blocking all others, you can add specific websites to the list of allowed sites. To do so:
Block pop-up windows: Uncheck this to disable the pop-up blocker altogether.Exceptions: You can customise this section by adding new sites or deleting the previous ones which will allow or disable pop-ups.
Thanks for replying neosp. No luce yet. I can still hear the file, "progressive_daytime_package/sounds/lc_corkpop.mp3" when I open a new window and I don't know where it's coming from. I went to the content panel and unchecked Exceptions and the sit was not listed. Just a few others that I that I decided to get rid of that seems unrelated.
Thanks, neosp. By resetting firefox, it was enough to get rid of that sound/music. I wish I thought of that sooner. Thanks for replying as well, cor-el. I will keep that in mind.I'm so glad I came here.
7fc3f7cf58