Project 2b – Designing a playlist file for the Internet radio
Let's get started and set up a playlist file for the project:
Create a blank file in
/home/pi/radio
calledplaylist
Edit playlist in Leafpad and add station information as two comma-separated elements, as shown in the following list:
The entries consist of <
station-description
>, <URL/MRL
> pairs on the same line. Neither text file can contain ",
" as it is used as a delimiter between fields. Note that some Internet radio station URLs may be very long (80 characters or more).A good site to start with is http://shoutcast.com, where you can get some short station URLs to experiment with.
The following screenshot shows a playlist that I created; you can download this playlist from http://1drv.ms/1ysAxkl:
All of the URLs used here are http://
but the VLC media player is able to resolve and access many types of Media Resource Locator (MRL), such as the file://
MRLs The Internet radio is able to play any valid sound stream MRLs...