Reproducing Mp3 files with html5

RESOLVED WONTFIX

Status

()

Core
Audio/Video
--
enhancement
RESOLVED WONTFIX
7 years ago
7 months ago

People

(Reporter: Andrea Stagi, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100401 Ubuntu/9.10 (karmic) Firefox/3.5.9

When I use html5 audio tag for reproducing mp3 files, it doesn't sound. Tag audio on Firefox should support mp3 format.

Reproducible: Always

Steps to Reproduce:
1.Reproduce any mp3 file using tag audio
2.
3.
Component: General → Video/Audio
Product: Firefox → Core
QA Contact: general → video.audio

Comment 1

7 years ago
MP3 seems to be licence encumbered (http://en.wikipedia.org/wiki/MP3#Licensing_and_patent_issues) so an implementation would seem ruled out for the same reasons that h264 is ruled out (http://weblogs.mozillazine.org/roc/archives/2010/01/h264_licensing.html).
(Reporter)

Comment 2

7 years ago
I see, Chrome and Safari support MP3 cause Google and Apple are in the list of licensees: http://www.mpegla.com/main/programs/AVC/Pages/Licensees.aspx. My problem arose trying to concatenate some audio files by a php script and play the resultant file using an audio tag. MP3 are simply to concatenate, instead of OGG format. Concatenating wave file is as simple as MP3, but the final file is too big. What other file types are supported by audio tag on Firefox?
>What other file types are supported by audio tag on Firefox?
ogg and wav
(Reporter)

Comment 4

7 years ago
Ok, thanks..But Mozilla isn't going to acquire Mp3 licence, is it? Or it's thinking about? I think that not supporting a popular format as Mp3 is would be a serious restriction...
(Reporter)

Comment 5

7 years ago
Hi,

I've discover another tag named "embed". I would report an alternative method for playing mp3 in Firefox using dynamic html:

HTML code

<span id=player></span>
<form>
<input type="button" value="Play my song" onClick="Play('Panama.mp3')">
</form>

Javascript code

function Play(url) {
  document.getElementById("player").innerHTML=
    "<embed src='"+url+"' hidden=true autostart=true height=0 width=0 loop=false>";
}

Setting height and width parameters to 0 it's possible to hide the player.

Comment 6

7 years ago
If mp3 is not possible then support for .aac should be considered.
We won't support MP3 for the same reasons we won't support H.264.  See bug 541286 for further details.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WONTFIX

Updated

6 years ago
Duplicate of this bug: 662045
Duplicate of this bug: 662045
Blocks: 700208
You need to log in before you can comment on or make changes to this bug.