Book Image

Raspberry Pi Essentials

By : Jack Creasey
Book Image

Raspberry Pi Essentials

By: Jack Creasey

Overview of this book

Table of Contents (15 chapters)
Raspberry Pi Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Project 2b – Designing a playlist file for the Internet radio


Let's get started and set up a playlist file for the project:

  1. Create a blank file in /home/pi/radio called playlist

  2. 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...