Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Hellburger
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 19
Join Date: Apr 2008
Default Coding to Play streaming PLS (ShoutCast)

Hey folks, I'm trying to write an app to play a PLS stream from a ShoutCast server, any advice? I'm able to stream standard MP3s using the MediaPlayer class, but it doesn't seem to work with PLS files.
 
juppmapice
Old
#2  
Junior Member
Thanks Meter 0
Posts: 27
Join Date: May 2009
Hi,

a PLS file is a playlist file not an actual media(sound/video) file, you can open it with your favorite text editor. To be able to listen to a stream you need to be able to decode the media type(AAC,MP3,WMA,...) thats what codecs are for
 
Hellburger
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 19
Join Date: Apr 2008
Yeah, I know, I tried using the adress in the .pls but it wasn't playing/nor throwing an error. I was pretty sure it was a valid codec being used (it works fine with a static mp3 path), so I guess I'll have to check with the settings on the ShoutCast server.

Thanks for the reply.
 
juppmapice
Old
#4  
Junior Member
Thanks Meter 0
Posts: 27
Join Date: May 2009
I'm interested in that idea of being able to listen to streams on the go. I did a quick google search and found out that there already is a stream player for android out there, called AntPlayer.

I think it's available on the market, and if the source is open maybe you can take a look.

I'm going to look it up on the market and see if it plays di.fm streams :P
 
sambir
Old
#5  
Member
Thanks Meter 0
Posts: 85
Join Date: Sep 2009
Droidlive?
 
Hellburger
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 19
Join Date: Apr 2008
Yeah, I found a few that can do it, but haven't found any open source options yet. I'll look into AntPlayer. I'm trying to create an app for our university's radio station.
 
marky-b
Old
#7  
marky-b's Avatar
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Feb 2008
Any updates? I'm looking to do the same.
 
Leandros_Ger
Old
#8  
Leandros_Ger's Avatar
Senior Member
Thanks Meter 12
Posts: 188
Join Date: Sep 2010

 
DONATE TO ME
Same problem here!

Devices: Nexus 4, Nexus 7

My german Android YouTube channel: www.androideca.de
My Blog: http://arvid-g.de
My Twitter: @Leandros_Ger

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more

Boot Animation Paradise for your Android Device

The default boot animations on any device, no matter whichmanufacturer, are generally pretty … more