My Streamradio (1 Viewer)

kroko

Portal Pro
February 4, 2007
428
420
55
Itzehoe
Home Country
Germany Germany
Hi there,

i had some trouble with radio station playing tiscali streams. So I started to built my own radio plugin. This plugin play radio streams and can display the actual song/artist on the screen. Many stations are already included. For the OSD display a station which has the song/artist on their web page is needed.

If you want to help me to have more channels here see the attaches parser.txt for inforamtion how to built a xml.

Regards
kroko

Download v0.5 (2008-09-09)

User whishes / missing functions:
  • an overview of channels
  • the stream stops playing on return to home
  • play recorded streams via MP
  • pls files suport
Included radio stations
104.6, 106.8, 106.7, 1Live, Antenne Thüringen, bigFM, Bremen Vier, Delta Radio, Energy HH, Expresradio, FFN, Hitradio RTL, HR3, KissFM, MDR Jump, N-Joy, NDR2, PSR, Radio Hamburg, Radio Regenbogen, Radio SAW, RMN Radio, RMN Relax, RPR1, RSH, Radio Sunshine, SWR3, Techno4ever

Changelog:

  • Version 0.5.1
    • fixed a small mpi bug
    • add 4 new stations (fip,errorFM 1/2 , the revolution)

  • Version 0.5
    • direct chanels via #123#
    • favorite station via 1,2,3,4,5
    • catch function for buggy VLC 0.8.6 i (16:9 and visualisation will not work, pls use .h version)
    • seperate favorites.xml for direct buttons

  • Version 0.4.1
    • b2 wide skin
    • mpi installer
    • remember last channel

  • Version 0.4
    • new header with station or RSS feed
    • display the cover if available
    • changed the xml to be more flexible
    • direct keys for favorite stations
    • better code
    • RC2 ready

  • Version 0.3.1
    • now possible to use vlc different visualisation
    • auto fullscreen possible via setup
    • changed token support for Tiscali streams
    • new xml reader (asx not used anymore)
    • fixed a memory leak in the reader !
    • record stream via trancode to hdd
    • save title / artist to disk , just to remember
    • more diagnostic in log files also for parser

  • Version 0.2
    • add support for xml files
    • actul title / artist will be displayed
    • actual station , country will be displayed

  • Version 0.1
    • Initial release
 

Attachments

  • StreamWindow.jpg
    StreamWindow.jpg
    60.2 KB
  • StreamFull.jpg
    StreamFull.jpg
    78.7 KB
  • StreamDir.jpg
    StreamDir.jpg
    59.4 KB
  • parser.txt
    30.6 KB

kroko

Portal Pro
February 4, 2007
428
420
55
Itzehoe
Home Country
Germany Germany
Because it looks like "My new radio" is not ongoing any more I started to thing about improving my Streamradio. So wrote a html parser to read the actual title and artist from the web site to display it in the MP. It works for some stations. I could do a xml for all station including Station Name, Country, Parser information, Internet Link, ....

Some stations use shockwave to display the actual artist. Or some have the actual cover on their site and so on.

So the best would to have a xml for every station.

How does it look on other stations ?

Here a sample from one of my sites:

(NJOY)

<div id="playList" class="topDisplay two">
<img src="/images/headline_playlist.gif" alt="N-JOY Playlist" class="blockImage" />
<img src="/images/pfeil.gif" alt="" class="icon" /><span>Jetzt: <a class="storyref" href="http://www1.n-joy.de/pages_special/0,,SPM2156,00.html" title="N-JOY Playlist">Zerrissen - JULI</a></span>
</div>

So Title = Zerissen Artist = JULI

Have you other samples from other station (maybe other countries)

Greetz
kroko
 

kroko

Portal Pro
February 4, 2007
428
420
55
Itzehoe
Home Country
Germany Germany
I found a way to load the data from the shockwave ;)

So I can do most of my internet streams....

Here my first xml sample

<?xml version="1.0" encoding="utf-8"?>
<profile>
<section name="station">
<entry name="name">1046 RTL Hit-Radio</entry> displayed name
<entry name="description">Berlins Hit-Radio</entry> displayed description
<entry name="homepage">http://104.6rtl.com/home</entry> Homepage Link
<entry name="position">3</entry> position in the bouquet
<entry name="logo"></entry> logo from the web site if available
<entry name="bouquet">German</entry> bouquet name
<entry name="category">Mixed</entry> category of music
<entry name="language">German</entry> spoken language
<entry name="country">de</entry> display flag ( if available, most are missing in the MP)
<entry name="quality">Good</entry> maybe later display of quality
</section>

<section name="stream">
<entry name="url">http://lsd.newmedia.tiscali-business.com/bb/redirect.lsc?adid=0&amp;stream=rtl1046$rtllive.wma&amp;content=live&amp;media=ms"</entry>
</section> stream to listen

<section name="parser">
<entry name="method">4</entry> method of parser
<entry name="get">http://104.6rtl.com/iplaylist/getsong.xml</entry> this webpage will be parsed
<entry name="search"></entry> now all parameters
<entry name="offset"></entry>
<entry name="start"></entry>
<entry name="start2"></entry>
<entry name="stop"></entry>
<entry name="devider"></entry>
<entry name="image">songonair/imgname/</entry>
<entry name="title">songonair/titel/</entry>
<entry name="interpret">songonair/interpret/</entry>
<entry name="swap">no</entry> swap title / artist in the display

</section>

</profile>




Greetz
kroko

Anyway, do we need a record button ? Maybe into mp3 ?

YES - the shockwave part works really good ! Including the PICTURE from the website. See my updated screenshot. I'm working now on the http parser.....

I LIKE IT :D

Greetz
kroko
 

Spragleknas

Moderator
  • Team MediaPortal
  • December 21, 2005
    9,474
    1,822
    Located
    Home Country
    Norway Norway
    Every enchantment to the Radio-part (IP-radio especially) is very welcome.

    (although I am not sure how to use this.... I never seen any Norwegian IP-radios providing coverart or music info)
     

    kroko

    Portal Pro
    February 4, 2007
    428
    420
    55
    Itzehoe
    Home Country
    Germany Germany
    Hi Spragleknas,

    most of the german radios have the actual title and artist on their web page. This could be in html or via flash. I use a parser to get the data out of the page. For the swf files I decompile them and look through the action scripts to get the URL or XML adress. So most is done by parsing just easy txt based data. If there is any similar in NO send me the link of the station and I look at it.

    :)

    Greetz
    kroko

    German sample url:

    http://www.radiohamburg.de
     

    mash

    New Member
    July 25, 2007
    1
    0
    Home Country
    Sweden Sweden
    Hello, i must say this looks really impressive, however i dont really know how to use it on the channels im listening to mostly.
    Kroko, can u look at http://www.rockklassiker.se to see how i could extract that information about whats playing? Its in swedish and "Nu Spelas" means Now playing..
    also this site http://www.sr.se/cgi-bin/p3/programsidor/latlista.asp?ProgramID=1604
    i would like to extract information from.

    Thanks in advance


    Oh and, how do i actually put it in MP? Its my second day working with this program so i dont really know how to get MP to show the actual information like in your screenshots?
     

    kroko

    Portal Pro
    February 4, 2007
    428
    420
    55
    Itzehoe
    Home Country
    Germany Germany

    Users who are viewing this thread

    Top Bottom