Streaming content menu

From MythTV Official Wiki
Jump to: navigation, search

Intro

This guide describe how you easy can generate your own playlist/menupage with streaming radiostation.
In this example I use it for streaming radiostations, but it's also possible for videostreams.

Update menu

This chapter describe how generate a personalized streaming radiostation playlist.

Preparation

Copy the xml files from /usr/share/mythtv/ to /home/mythtv/.mythtv

Add menuitem

edit mainmenu.xml and add:

 <button>
    <type>FM</type>
    <text>Radio</text>
    <action>MENU radiomenu.xml</action>
 </button>

Add icon to the new menuitem

edit /home/mythtv/.mythtv/themes/Retro/theme.xml and add:

 <buttondef name="FM">
    <image>ui/button_off.png</image>
    <watermarkimage>watermark/streaming.png</watermarkimage>
    <offset>0,0</offset>
  </buttondef>

Generate radio page

The next xml is a new file defined in mainmenu.xml called radiomenu.xml.
With the first element you close all your radiostreams.
The second element is an example to play the radiostation stream. This can be a http or mms protocol.
The program 'radio' a own created bashscript
/usr/local/bin/radio

 #!/bin/bash
 killall mplayer
 mplayer $1 &

The third element show how you can also play ram streams.

 <mythmenu name="Internet Radio">
   <button>
        <type>SILENCE</type>
        <text>Radio uit</text>
        <action>EXEC killall mplayer</action>
   </button>
   <button>
      <type>Radio 538</type>
      <text>Radio 538</text>
      <action>EXEC radio http://ms.stream.garnierprojects.com/radio538</action>
   </button>
   <button>
      <type>Streaming ram radio</type>
      <text>Streaming ram radio</text>
      <action>EXEC radio `lynx -dump http://www.website.com/ram/live.ram`<action>
    </button>
   .....
 </mythmenu>

Find more streams

URL's with more streaming content

World wide

Netherlands / Belgium

Futher ideas

  • use the gallery view to see more channels on the screen
  • show a logo for each (web) radio station
  • dynamic generate a radio menu page