Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HTML5 audio TAG & AACPLUS

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
luca066



Joined: 01 Dec 2011
Posts: 42

PostPosted: Fri Feb 17, 2012 11:48 pm    Post subject: HTML5 audio TAG & AACPLUS Reply with quote

Hi Karl,

I'm trying to listen to an aacplus stream using iOS Safari Mobile browser.
I use the audio html5 tag and it doesn't work with aacplus streams.
With mp3 streams it works great.
Safari Mobile has got the capability to play aacplus live stream (if I use a shoutcast server with the same stream the browser plays the audio).

Do you have any idea about it?
I use this html code:
<audio id="mystream" src="http://myserver:8080/mount" ></audio>

I've tried this code too:
<audio id="mystream" src="http://myserver:8080/mount" type="audio/mp4; codecs=mp4a.40.5" ></audio>

I've tried with Icecast 2.3.2-kh31.4 and Icecast 2.3.2-POST.
Thanks for your answer

Luca
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Feb 18, 2012 1:21 am    Post subject: Reply with quote

It's usually next to impossible to determine why an application I don't develop fails to playback a stream. My initial guess would be either a missing extension on the mountpoint or the content type is not as expected eg should be audio/aac or audio/aacp

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
davect99



Joined: 04 Oct 2010
Posts: 44

PostPosted: Sun Feb 19, 2012 2:28 pm    Post subject: Reply with quote

HTML 5 audio does not support aacPlus. For streaming, your options are MP3 or OGG, but that's also determined by the browser. Have a look at this article: http://html5doctor.com/native-audio-in-the-browser/
Back to top
View user's profile Send private message
luca066



Joined: 01 Dec 2011
Posts: 42

PostPosted: Mon Feb 20, 2012 11:24 am    Post subject: Reply with quote

Hi Dave,

Safari on iOS (including iPad) currently supports uncompressed WAV and AIF audio, MP3 audio, and AAC-LC or HE-AAC audio. HE-AAC is the preferred format.
It works with http streaming (icecast and shoutcast).
It was a problem related to the mime type.

thanks to Karl.

Luca
Back to top
View user's profile Send private message
davect99



Joined: 04 Oct 2010
Posts: 44

PostPosted: Wed Feb 22, 2012 3:59 pm    Post subject: Reply with quote

luca066 wrote:
Safari on iOS (including iPad) currently supports uncompressed WAV and AIF audio, MP3 audio, and AAC-LC or HE-AAC audio. HE-AAC is the preferred format.
It works with http streaming (icecast and shoutcast).
It was a problem related to the mime type.

Now, if the other browsers would do this we'd be all set!
Back to top
View user's profile Send private message
cruxial



Joined: 10 Jan 2012
Posts: 3

PostPosted: Wed Mar 14, 2012 10:35 pm    Post subject: Reply with quote

Which MIME type did you eventually use? I've got a similar issue with the iPhone and aacplus stream. I can get the iPhone to stream aacplus but it will cut-off for about 1-2 secs every 3-5 mins repeatedly. What makes this issue more strange is that it only occurs when connected to a mobile network (3G) however does not render this problem when connected to WIFI and works great.
Back to top
View user's profile Send private message
luca066



Joined: 01 Dec 2011
Posts: 42

PostPosted: Sun Mar 18, 2012 10:25 pm    Post subject: Reply with quote

Probably you have a prolem with the bandwidth available to your cell phone, it's not a problem related to the mime type.
Back to top
View user's profile Send private message
hariom



Joined: 18 Dec 2012
Posts: 1

PostPosted: Wed Dec 19, 2012 5:17 am    Post subject: Reply with quote

@luca066

Did you test the aac streaming from icecast server over the chrome browser or any other browser except safari using HTML5 audio tag.
Back to top
View user's profile Send private message
luca066



Joined: 01 Dec 2011
Posts: 42

PostPosted: Wed Dec 19, 2012 9:17 am    Post subject: Reply with quote

Here you can find some info: http://www.longtailvideo.com/html5
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber