Coding to Play streaming PLS (ShoutCast) - Android Software Development

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.

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

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.

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

Droidlive?

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.

Any updates? I'm looking to do the same.

Same problem here!

Related

Any way to stream .pls files?

I try it on the Streaming Video program that came with Black 3.01, and TCMP and couldn't get them to load. Anyone knows a way?
Thanks!
I have had success playing PLS files with mortplayer
I just finish trying with mortplayer and it wouldn't load the file.
If the PLS file is malformed, then no player will play it properly.
Open it in Notepad on your PC (open Notepad, and copy 'n paste the URL into the File box where you can type in a filename, and it'll download and open the file)... You might be able to tell just by looking at it if the .pls is malformed.
Try adding it as a response to this thread and I'll take a look at it, if you want (add it inside the [ code ] boxes in a similar way you'd do it for a quote) and it should keep the text as is without converting anything to hyperlinks.
Have you tried disassociating the .pls format with TCPMP and then re-associating it? That might work if it's a registry hitch.
Im able to stream shoutcast and .pls using conduit pocketplayer and pocketmusic
On my local network i use vm netbrowser and coreplayer 1.04 and play my music and videos off my server. I do the same at my office.
I use GSPlayer and select in the options to associate .pls files.
Ron
I have try MortPlayer, GSPlayer, TCMP, Core Codec Player and Conduit pocketplayer and non have worked.
zzfdkzz kindly sent me the contents of the .pls file in a private message, and I know why it's not streaming:
Code:
[playlist]
NumberOfEntries=1
File1=http://mastadog.kicks-ass.net:4000/;stream.nsv
Unfortunately, it's an NSV stream which uses VP6. Unfortunately, I don't think any pocket player will decode and stream these kinds of streams (not even TCPMP), though saying that I've not tried myself. The .pls file is correctly-formatted though, but no player can understand its contents so it won't play.
Sorry to be the bringer of bad news :/ maybe somebody else knows of an app which can play VP6 NSV streams.
Thanks christopherwoods for the help!

Trick mediaplayer to play MP3 streams?

Hi, is there a way to trick the standard mediaplayer to play a mp3 stream rather than a file?
The mediaPlayer Object from the SDK just takes any source not matter if the link points to the lokal filesystem or a link to a website. But I don't get it to work :/
I try to play http://www.motor.de/extern/motorfm/stream/motorfm.mp3 for example and I tried to put it into a m3u playlist. But the mediaDetectorServer (or whichever) always deletes this file. Any other ideas?
[Edit] Before someone asks: I try to use this for my alarm clock to get woken up by internet radio.
You are a brave man. Do you really want to risk being late to work because 3G/Edge/Wifi was down?
Sorry, I don't have an answer to your problem. I use StreamFurious for my Internet radio needs.
You know anything about linux? Create a fifo named "something.mp3", dump the network stream into the fifo, play the fifo. Should work. I'm not going to bother trying though since it really doesn't matter to me. If you don't know what I said, then google search is your best friend.
tulamidan said:
Hi, is there a way to trick the standard mediaplayer to play a mp3 stream rather than a file?
The mediaPlayer Object from the SDK just takes any source not matter if the link points to the lokal filesystem or a link to a website. But I don't get it to work :/
I try to play http://www.motor.de/extern/motorfm/stream/motorfm.mp3 for example and I tried to put it into a m3u playlist. But the mediaDetectorServer (or whichever) always deletes this file. Any other ideas?
[Edit] Before someone asks: I try to use this for my alarm clock to get woken up by internet radio.
Click to expand...
Click to collapse
Hm... dunno sound like a bit of a hassle to me. Might work all right though wit gScript. Hm...
Well I'm having a try with modifying the source of the musik.apk and/or the alarm.apk let's see how far I get.

How to stream internet audio on the HD2?

It seems like the basic music player doesn't support streams, there doesn't appear to be any support in windows media player for streams either...
In the end I searched for some tools and GSplayer came up as supporting streams, so i tried that and copied the CAB install file to the storage card, it showed up in the start menu...I can run it and open a URL or local .pls file and it starts to stream...you see the percentage buffer quickly shoot up to 100% but then nothing happens...no audio, nothing.
I'm basically trying to play audio from an internet radio station I use a lot at home (xfm.nl) if you click "Luister Live" on the left you'll see shortcuts for all the streams.
Can anyone help? My settings are OK I think, I can get to the internet and recieve my email and use all the web based apps, so I don't think its a connection thing...maybe GSPlayer just doesn't support the HD2?
Try Skyfire browser.
Princess_Frosty said:
It seems like the basic music player doesn't support streams, there doesn't appear to be any support in windows media player for streams either...
In the end I searched for some tools and GSplayer came up as supporting streams, so i tried that and copied the CAB install file to the storage card, it showed up in the start menu...I can run it and open a URL or local .pls file and it starts to stream...you see the percentage buffer quickly shoot up to 100% but then nothing happens...no audio, nothing.
I'm basically trying to play audio from an internet radio station I use a lot at home (xfm.nl) if you click "Luister Live" on the left you'll see shortcuts for all the streams.
Can anyone help? My settings are OK I think, I can get to the internet and recieve my email and use all the web based apps, so I don't think its a connection thing...maybe GSPlayer just doesn't support the HD2?
Click to expand...
Click to collapse
I have WunderRadio but since you know the stream you want to play coreplayer will open it.
I just tried this using Skyfire and GSPlayer.
I clicked on the Winamp mobile link, and it downloaded the .pls stream to my storage card. GSPlayer opened automatically. I've set GSPlayer to own .pls files, so maybe that would help.
Just tried clicking on the downloaded .pls file and it also opens up GSPlayer. Hope that helps! At least you know that it can work
I want to know something fairly similar, is it possible to make a player stream a song or file instead of having to download it first. Sometimes with very large files I just want to play it and let it download as it plays instead of waiting for the entire file to download before being able to play it.
Try Groovemobile or nanogroove.
I just upgraded from a Touch Pro 2.
I have a few shoutcast .pls files I used to open and stream in coreplayer 1.3.6 build 7427 with no problems.
I have changed from o2 to orange but all other streaming seems ok (e.g nanogroove/groovemobile/youtube/myplayer etc).
On the HD2 when I try to open the .pls files I get an unknown file format (0106) error or sometimes coreplayer just crashes.
Anyone know how to get coreplayer working with there files again?
I enjoy accessing last.fm using the skyfire browser.
Try SPB Radio, pretty good!
I just wanted to thank everyone posting suggestions, I will be trying some of them out soon
There is also coreplayer which handles .pls and .m3u file attachments.

Audio player

I am looking for any tutorials on creating a audio player app.
Basicaly i want to create an app that lists a selection of song to play with controls to play stop etc.
I would guess what most do is play these from a server to save on app size? or do they put the audio in with the app?
Anyway i have been hunting but not finding quite what i need.
I found one that plays from sd card but i want it to play only files i say.
Thinking about if it was streamed then that would use there data and if not connection they could not use so maybe streaming is not the way to go.
Anyway anyone any suggestions?

Vegacomb - can it stream music from PC?

Hi guys, my Vega will be arriving this week, since it will be always on the same network as my PC, is there a way to play music or playlists stored on the PC to the Vega (will be running Honeycomb)
I would prefer the playlists to be on the tablet so the wife can set some up rather than her going to my PC to do anything.
cheers
You can try Google Music Beta. It Uploads music to the Google servers, and you can play it anywhere, anytime
thomskipsp said:
You can try Google Music Beta. It Uploads music to the Google servers, and you can play it anywhere, anytime
Click to expand...
Click to collapse
I'm in the UK, there's no Google Music here
I'm in the Netherlands Ever heard of proxy servers?
cheers, but can it stream music from my PC?
The easiest method is to use CIFS Manager to create a link to your PC share and just open the files up using any Audio player. PowerAmp is the leader for playing music but personally I found it to be a pain to setup. Give it a go with setting up the share and if you come across any problems post them here and I'll see if I can help out.
Good luck!
I agree with using CIFSmanager, it works very well for streaming video and audio to your Vega. However, when i tried it couldn't get Poweramp, winamp or the default player to browse to the share (even if it was mounted in /sdcard) so in the end I used MortPlayer Music. It's not the most pretty interface but it works well until one of the other players adds support for browsing CIFS.
cheers guys, much appreciated
I know that being a thread necromancer isn't cool or anything but maybe someone really wants to stream audio/video etc from PC like a boss.
Take a look at orb.com

Categories

Resources