Stephen Downes

Knowledge, Learning, Community

Jan 31, 2011

I like this a lot. It took me a bit to figure out what to do (the post never actually tells you how to *listen* to #ds106 radio, but eventually I took a flyer and just clicked on the link titled "streams that audio out to a play list" and it launched and simply started playing in VNC Player (and I assume it would do the same in iTunes if iTunes were my default audio application).

The music isn't exactly to my tastes, but it's OK. I'm listening to it as I do this follow-up. I wish people would announce band names and song titles, in case I hit something I like (like the Bowie I'm listening to right now, which I had to learn about by Googling the lyrics).

Just as an experiment, I tried stopping the stream to see whether the audio player would pick up later at the same spot. No. No way to skip forward, either. So now I'm not listening.

Extracting the link and doing a search on tunein.php took me to a list of a *pile* of these radio stations. I see there's a tunein radio app for the iPhone.  Also for Android I wasn't able to find any documentation or download for the tunein.php application itself, though (Google search is just awful sometimes).

Looking up the file format gives me more information.

Now I'm listening to Radio Super Medellin, a talk show in Spanish, in yourmuze.fm - a web-based .pls stream player, formerly called Moodio (mobile users can go to m.yourmuze.fm ). I was able to add the ds106 station to the station list and now I'm listening to it in yourmuse.fm (still no way to skip ahead, though).

All very fine, but how do you *make* a .pls radio show? I tried another serach string from the ds106 URL, 'myautodj', which took me to Myautodj, a  Shoutcast radio station hosting service. I like Shoutcast a lot - I have the client on my iPod Touch and listen to old-time radio broadcasts late at night. It's as though the radio signals travel through time. It looks like myautodj costs $20 a month, though - not too expensive, but I want to explore more. There's a huge list of options - the ever-useful Robin Good summarizes them.

Still listening to ds106 and it seems the songs are different, even though the bumper was the same. So maybe it doesn't just repeat. Cool.

Still looking for ways to create. Winamp and some other players will allow plugins that allow you to create and upload .pls files based on what you're listening to, which is a pretty good idea. I'm looking for something stand-alone, though. I found some here - MP3 Tag Assistant Professional and Music Tag Editor

I downloaded the Music Tag Editor to create some demo playlists. (Half an hour later) OK. Figured out how to make a playlist with songs from different folders. The out-of-box set-up for Music Tag Editor is very confusing, as it's set to wipe out your playlist and automatically create a new one every time you change file folders. In folder view, you have to unselect the 'automatic addition' buttons at the top of the folder list (there's two of them, one 'with clear' (which is selected by default), and one 'without clear'. Then, to actually create the playlist, click the 'generate' link in a completely different panel. Usability fail.

So that worked. But all the song addresses are windows directory addresses, which won't work very well online. Can I just use web addresses? I open the downloaded ds106.pls file and... Nope. Instead of specific songs, it says simply: File1=http://208.82.115.69:8010/stream - Ah! A stream! (That's probably why I can't skip forward). The stream won't play in my browser (Chrome); it just gives a broken palyer screen. But I can enter it into the 'play network stream' window in VNC and play it from there.

Well, yes, streaming is better than downlading. But you needs a streaming server, which I don't have. So we're back to sending the playlist to some service, or installing a streaming server. Hmm.

Well, maybe I can just make a list of MP3 files work. Uploading MP3 files (wait.... wait... bandwidth challenged service provider, aka. Rogers). I edit the .pls file manually in Notetab to point to the http file locations, and upload that to http://www.downes.ca/files/audio/mylist.pls and then try to open it...

In the browser. No joy. It just shows the text of the file. I guess I have to set up my server to serve .pls files as a specific mime-type. Not sure which mime type, though...

I try downloading the .pls and clicking on it. That works, sort of. It won't open the first file ("Your input can't be opened: VLC is unable to open the MRL  http://www.downes.ca/files/audio/04 - Open Window (Live).mp3'. Check the log for details". It jumps to the second and starts playing it. It probably hates the file name with spaces and brackets and such in it. I fix the filenames and - yes, that's it.

OK, the mime type. Let's look that up and Google. Looks like it's audio/x-scpls - as given by fileext.com  And this site confirms that, and also offers a suggestion of how to create a link for it.  So how do I set my server to serve .pls as audio/x-scpls ? You can set up a .htaccess for it  but I'd rather change the server configuration itself.

In the server, mime types are defined in /etc/mime.types (your server may vary) so I ssh into my website, log on as root, and open the file ( vi /etc/mime.types
 ). Then I restart the web server and try the URL again. Excellent! Now it behaves exactly as the ds106.pls file behaves.



Stephen Downes Stephen Downes, Casselman, Canada
stephen@downes.ca

Copyright 2024
Last Updated: Mar 29, 2024 08:58 a.m.

Canadian Flag Creative Commons License.

Force:yes