Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to play AAC provided by SHOUTcast with HTML5?

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?

like image 287
Caio Tarifa Avatar asked Nov 12 '22 21:11

Caio Tarifa


2 Answers

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

like image 153
Anobik Avatar answered Nov 14 '22 22:11

Anobik


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.

like image 42
Sarge Avatar answered Nov 14 '22 22:11

Sarge