Question

I tried the following code below:

<audio src="http://XXX.XXX.XXX.XXX:XXXX/;" controls autoplay></audio>

I'm using Mac and this code worked fine with Safari but not with Chrome or Firefox.

Is there any solution using only HTML5? If not, can I make a fallback with some Flash open source library? How?

Was it helpful?

Solution

There might be some third party audio player for aac but I will share some links on my vast search I did

1 - HE AAC support

As per this post and also wiki pedia HEAAC

It says chrome supports HE-AAC

and here is a stack overflow post that will I guess help you to move formward.

SO AAC support

And here is another link saying chrome supports **The MP4 container format with the H.264 video codec and either the AAC audio codec or the MP3 audio codec is natively supported by Internet Explorer, Safari and Chrome, but Chromium and Opera do not support the format. Firefox will soon support the format, but only when a third-party decoder is available.

The MPEG media formats are covered by patents, which are not freely licensed. All the necessary licenses can be bought from MPEG LA. Since H.264 is currently not a royalty free format, it is unfit for the open web platform, according to Mozilla [1, 2], Google [1, 2] and Opera. However, since royalty free formats are not supported by Internet Explorer and Safari, Mozilla has decided to support the format anwyay, and Google never fulfilled their promise to remove support for it in Chrome.**

LINK : AAC Support

Please let me know if any of the link is help ful

OTHER TIPS

No AAC is only supported by Safari and Internet Explorer. Here is a list for audio file support.

  • IE - MP3, AAC
  • Chrome - OGG, MP3, WAV
  • Firefox - OGG, WAV
  • Safari - MP3, AAC, WAV
  • Opera - OGG, WAV

I assume that listeners are using the latest versions of each browser.

You can create a WAV and a AAC stream and provide the AAC if listener is using IE with html if-else hacks. But this solution is costly.

I've had the same issue. With Chrome, try using a video tag instead of an audio one:

<video controls="controls" width="100%" height="60px">
   <source src="xxxxxxxxxxx"/>
   Your browser does not support video.
</video>

The only issue is that the Play/Stop controls hides automatically.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top