Websitetemplate.org

Welcome > Linux > Web Radio

Web Radio

Note: These instructions are not necessary if you build this workstation.

So you want to listen to the Radio on the Internet? No problem! You may have to configure your browser, and that is what this article is all about.

Start up your browser. (This article assumes you are using Netscape Navigator - Mozilla should be similar). Find a web site that offers streaming media in mp3 format (Google can list a few, or head on over to Digitally Imported Radio). Click on one of the MP3 links. One of three things will happen:

  • Some kind of media player (xmms?) will pop up and begin playing the streaming media. Congratulations, you are done.
  • Nothing happens. Another piece of cake - create a new mime type and you will be good to go. Read the section on Editing Your MIME Types.
  • A file dialog box will pop up. Piece of cake - a simple edit and you will be on your way. Read the section on Adding A New MIME Type.

Editing Your MIME Types

To edit your existing MIME types, click on Edit, click on Preferences, expand the Navigator section, then click on Applications. You should see this:

Scroll down until you find the correct mime type. This may take somepatience as there are many types of audio. In this particular case, I needed to edit the application so that xmms was loaded. To do so, I clicked onthe proper MIME type, and then clicked on Edit. I changed the applicationto read "/usr/X11R6/bin/xmms -p %s" as shown:

To find the player of your choice, use the "which" command - "which xmms" for example. The "-p" option causes xmms to begin playing immediately. The"%s" is critical, and tells xmms (or whatever application) what "file" (the stream) to play. Failuret o put the %s in there will cause xmms to play the last thing it loaded. It may cause your player to do nothing.

To save your changes, click OK, and click OK. Then click on the MP3 link. Xmms should startup and play the audio stream.

Adding A New MIME Type

To edit your existing MIME types, click on Edit, click on Preferences, expand the Navigator section, then click on Applications. You should see this:


Scroll down until you find the correct mime type. This may take some patience as there are many types of audio. In this particular case, I wantto add "audio/x-scpls" so that xmms was loaded when that MIME type was received. To do so, click on "New..." and entered the MIME type andthe application as shown:

To find the player of your choice, use the "which" command - "which xmms" for example. The "-p" option causes xmms to begin playing immediately. The "%s"is critical, and tells xmms (or whatever application) what "file" (the stream) to play. Failure to put the %s in there will cause xmms to play the last thing it loaded. It may cause your player to do nothing.

To save your changes, click OK, and click OK. Then click on the MP3 link. Xmms should startup and play the audio stream.

Content Copyright 2003-2014 George Toft