Play audio/aacp stream

All your problems with Audio, Video and Images.

Play audio/aacp stream

Postby lukzke » Wed Aug 10, 2011 4:22 pm

Hi,

Im trying to create a radio app. Only i have a problem with the audio/aacp format, android don't naturally play this aac streams. But some apps do. Can someone provide me more information about how to accomplish this, or can send me in the right direction.

Thx!
lukzke
Freshman
Freshman
 
Posts: 6
Joined: Wed Jul 27, 2011 9:00 pm

Top

Re: Play audio/aacp stream

Postby manitu » Thu Aug 11, 2011 11:30 am

please can anyone help, because i am interested in that too!
manitu
Freshman
Freshman
 
Posts: 7
Joined: Tue Sep 14, 2010 1:41 pm

Re: Play audio/aacp stream

Postby abhijitphatak28 » Thu Aug 11, 2011 1:44 pm

What happened when you try to run these audio stream into the native media player directly. If it is not playing then it whould give me some message in Logcat. You can look for those error messages to get exact problem.

Thanks

Regards
-Abhijit
User avatar
abhijitphatak28
Senior Developer
Senior Developer
 
Posts: 102
Joined: Sat Feb 12, 2011 1:18 pm
Location: Indore

Re: Play audio/aacp stream

Postby manitu » Thu Aug 11, 2011 4:42 pm

the error in logcat is:
media player error (1,-214....)
nothing else i could find...
manitu
Freshman
Freshman
 
Posts: 7
Joined: Tue Sep 14, 2010 1:41 pm

Re: Play audio/aacp stream

Postby lukzke » Thu Aug 11, 2011 5:21 pm

The problem is that the mediaplayer class can not play aac directly only when it's stored on the phone and than play it. The log says, server couldn't determine content length, and that is because it's a stream
lukzke
Freshman
Freshman
 
Posts: 6
Joined: Wed Jul 27, 2011 9:00 pm

Re: Play audio/aacp stream

Postby lukzke » Thu Aug 11, 2011 7:25 pm

I mananged to get it working by saving it to my sd card like in this tutorial but it not a ideal situation

http://whyandroid.com/android/92-androi ... layer.html
lukzke
Freshman
Freshman
 
Posts: 6
Joined: Wed Jul 27, 2011 9:00 pm

Top

Re: Play audio/aacp stream

Postby manitu » Tue Aug 16, 2011 12:06 pm

Isn't this tutorial for mp3? What if you want to play for a live streaming of a radio station?
manitu
Freshman
Freshman
 
Posts: 7
Joined: Tue Sep 14, 2010 1:41 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 13 guests