Difference between revisions of "Internet Radio"

From LinuxMCE
Jump to: navigation, search
Line 1: Line 1:
 
[[Category: Tutorials]]
 
[[Category: Tutorials]]
Currently there is no direct support for the Internet Radio stations list, etc. in LinuxMCE. However, you can create the scenario shortcut to quick-start your favorite station.  
+
Currently there is no direct support for the Internet Radio stations list in LinuxMCE. However, you can create the scenario shortcut to quick-start your favorite station.  
  
'''Follow these steps''':
 
  
1. Go to Web Admin: open internet browser and type your LinuxMCE CORE IP address in the address field.
+
* Go to [[LinuxMCE Admin Website]] --> Advanced --> Configuration --> Scenarios --> Media Scenarios" and press "Add My Scenario" button.
  
2. Login with your LinuxMCE user and password.
+
* Under "Add My Scenario" type a description, like "DI - Lounge". Check in which room you want this scenario to appear. Press "Save".
  
3. Go to "Advanced -> Configuration -> Scenarios -> Media Scenarios" and press "Add My Scenario" button.
+
* Click on the description of the scenario that you've just added.
  
4. Under "Add My Scenario" type a description, like "DI - Lounge", check on which entertainment area (room) you want this scenario to appear. Then press "Save" button.
+
* In "Scenario commands" select "Media Plug-in" from the "Device:" drop-down and "MH Play Media" from the "Command:" drop-down. Press the "Add" button.
  
5. Then click on the description of the scenario that you've just added.
+
7. In the "#13 Filename (string)" field type the URL of your online radio station ( e.g.: http://scfire-chi0l-1.stream.aol.com/stream/1009 ). In the "#29 PK_MediaType (int)" type 4. In the "#45 PK_EntertainArea (string)" put the number of the Entertaining Area (it usually starts from 1, see the note below). Press the "Save" button and the "Test Command" to see if it works.
  
6. In "Scenario commands" select "Media Plug-in" from the "Device:" drop-down and "MH Play Media" from the "Command:" drop-down, then press the "Add" button.
+
8. Do a [[quick reload router|Quick Reload]] & [[Obiter Generator|Regen]] and you'll be able to see you radio on the media menu of your Orbiter. Click on the button and it should start playing.
  
7. In the "#13 Filename (string)" field type the URL of your online radio station ( e.g.: http://scfire-chi0l-1.stream.aol.com/stream/1009 ), in the "#29 PK_MediaType (int)" type 4. In the "#45 PK_EntertainArea (string)" put the number of Entertain Area (it usually starts from 1, see the note below). Press the "Save" button and "Test Command" to see if it works.
 
  
8. Do a Quick Reload & Regen and you'll be able to see on the media menu of your orbiter, your radio. Click on the button and it should start playing.
+
==Notes and troubleshooting==
  
 +
* The media type "4" does correspond to the MEDIATYPE_pluto_StoredAudio_CONST. It is a workaround. When all stuff works, it will be changed to the "6" (MEDIATYPE_pluto_LiveRadio_CONST)
  
'''Notes and troubleshooting''':
+
* If radio station playback doesn't start - try playing it a couple times more: there is an issue in xine-lib which sometimes causes it to fail the first time.
  
1) The media type "4" does correspond to the MEDIATYPE_pluto_StoredAudio_CONST. It is a current workaround, when all stuff will be working OK, it will be changed to the "6" (MEDIATYPE_pluto_LiveRadio_CONST)
+
* Be sure not to put the URL of the playlist in "#13 Filename" parameter - it should be the URL of the station itself. Playlist URLs usually end with ".m3u" and ".pls". Download the playlist and get the URL of station from it (there can be many entries, each representing a mirror).
  
2) If radio station playback doesn't start - try play it couple of times more: there is an issue in xine-lib which causes it sometimes to fail first time.
+
* If you have issues identifying your Entertainmeny Area ID, you can query the DB directly:
 
+
:* At the terminal, start the mysql commandline:
3) Be sure not to put the URL of playlist in "#13 Filename" parameter - it should be the URL of station itself. Playlist URLs usually end with ".m3u" and ".pls". Download the playlist and get the URL of station from it (there can be many entries, representing mirrors).
+
 
+
4) If you have issues identifying your Entertain Area ID, you can query the DB directly: at the terminal, start the mysql commandline too:
+
 
  mysql -u root -p pluto_main <enter>
 
  mysql -u root -p pluto_main <enter>
then issue the following query
+
:then issue the following query
 
  mysql> SELECT PK_EntertainArea, Description FROM EntertainArea;
 
  mysql> SELECT PK_EntertainArea, Description FROM EntertainArea;
and select the ID of the desired area from the list:
+
:*Select the ID of the desired area from the list:
 
  +------------------+------------------+
 
  +------------------+------------------+
 
  | PK_EntertainArea | Description      |
 
  | PK_EntertainArea | Description      |
Line 40: Line 36:
 
  +------------------+------------------+
 
  +------------------+------------------+
 
  1 row in set (0.00 sec)
 
  1 row in set (0.00 sec)
type 'quit' to exit:
+
:type 'quit' to exit:
 
  mysql> quit <enter>
 
  mysql> quit <enter>

Revision as of 05:04, 29 May 2008

Currently there is no direct support for the Internet Radio stations list in LinuxMCE. However, you can create the scenario shortcut to quick-start your favorite station.


  • Go to LinuxMCE Admin Website --> Advanced --> Configuration --> Scenarios --> Media Scenarios" and press "Add My Scenario" button.
  • Under "Add My Scenario" type a description, like "DI - Lounge". Check in which room you want this scenario to appear. Press "Save".
  • Click on the description of the scenario that you've just added.
  • In "Scenario commands" select "Media Plug-in" from the "Device:" drop-down and "MH Play Media" from the "Command:" drop-down. Press the "Add" button.

7. In the "#13 Filename (string)" field type the URL of your online radio station ( e.g.: http://scfire-chi0l-1.stream.aol.com/stream/1009 ). In the "#29 PK_MediaType (int)" type 4. In the "#45 PK_EntertainArea (string)" put the number of the Entertaining Area (it usually starts from 1, see the note below). Press the "Save" button and the "Test Command" to see if it works.

8. Do a Quick Reload & Regen and you'll be able to see you radio on the media menu of your Orbiter. Click on the button and it should start playing.


Notes and troubleshooting

  • The media type "4" does correspond to the MEDIATYPE_pluto_StoredAudio_CONST. It is a workaround. When all stuff works, it will be changed to the "6" (MEDIATYPE_pluto_LiveRadio_CONST)
  • If radio station playback doesn't start - try playing it a couple times more: there is an issue in xine-lib which sometimes causes it to fail the first time.
  • Be sure not to put the URL of the playlist in "#13 Filename" parameter - it should be the URL of the station itself. Playlist URLs usually end with ".m3u" and ".pls". Download the playlist and get the URL of station from it (there can be many entries, each representing a mirror).
  • If you have issues identifying your Entertainmeny Area ID, you can query the DB directly:
  • At the terminal, start the mysql commandline:
mysql -u root -p pluto_main <enter>
then issue the following query
mysql> SELECT PK_EntertainArea, Description FROM EntertainArea;
  • Select the ID of the desired area from the list:
+------------------+------------------+
| PK_EntertainArea | Description      |
+------------------+------------------+
|                1 | Bedroom (Master) |
+------------------+------------------+
1 row in set (0.00 sec)
type 'quit' to exit:
mysql> quit <enter>