1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

My Streamradio

Discussion in 'MediaPortal 1 Plugins' started by kroko, May 2, 2007.

  1. kroko

    kroko Portal Pro

    Joined:
    February 4, 2007
    Messages:
    428
    Occupation:
    plc programmer
    Location:
    Itzehoe
    Ratings:
    +211 / 0
    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
     

    Attached Files:

    • StreamWindow.jpg
      StreamWindow.jpg
      File size:
      60.2 KB
      Uploaded:
      November 16, 2007
      Views:
      956
    • StreamFull.jpg
      StreamFull.jpg
      File size:
      78.7 KB
      Uploaded:
      November 16, 2007
      Views:
      598
    • StreamDir.jpg
      StreamDir.jpg
      File size:
      59.4 KB
      Uploaded:
      November 17, 2007
      Views:
      808
    • parser.txt
      File size:
      30.6 KB
      Uploaded:
      September 8, 2008
      Views:
      338
    • Like Like x 3
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. kroko

    kroko Portal Pro

    Joined:
    February 4, 2007
    Messages:
    428
    Occupation:
    plc programmer
    Location:
    Itzehoe
    Ratings:
    +211 / 0
    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
     
  4. Ralph
    • Team MediaPortal

    Ralph Retired Team Member

    Joined:
    May 13, 2005
    Messages:
    692
    Location:
    Germany
    Ratings:
    +8 / 0
    Home Country:
    Germany Germany
    Hi kroko,

    sounds great.
    Will try as soon as possible.:)


    Regards
    Ralph
     
  5. kroko

    kroko Portal Pro

    Joined:
    February 4, 2007
    Messages:
    428
    Occupation:
    plc programmer
    Location:
    Itzehoe
    Ratings:
    +211 / 0
    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
     
  6. kroko

    kroko Portal Pro

    Joined:
    February 4, 2007
    Messages:
    428
    Occupation:
    plc programmer
    Location:
    Itzehoe
    Ratings:
    +211 / 0
    Home Country:
    Germany Germany
    Yeah its going cool :cool:

    see my new screenshot !

    Greetz
    kroko
     
  7. Spragleknas
    • Team MediaPortal
    • Administrator

    Spragleknas Administrator

    Joined:
    December 21, 2005
    Messages:
    9,461
    Gender:
    Male
    Occupation:
    Occupied
    Location:
    Located
    Ratings:
    +1,880 / 12
    Home Country:
    Norway Norway
    Show System Specs
    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)
     
  8. kroko

    kroko Portal Pro

    Joined:
    February 4, 2007
    Messages:
    428
    Occupation:
    plc programmer
    Location:
    Itzehoe
    Ratings:
    +211 / 0
    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
     
  9. mzemina
    • Team MediaPortal

    mzemina Retired Team Member

    Joined:
    February 23, 2005
    Messages:
    2,065
    Occupation:
    Project Manager
    Location:
    Tulsa, OK
    Ratings:
    +13 / 0
    Home Country:
    United States of America United States of America
    Plugin not available yet?
     
  10. mash

    mash New Member

    Joined:
    July 25, 2007
    Messages:
    1
    Ratings:
    +0 / 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?
     
  11. kroko

    kroko Portal Pro

    Joined:
    February 4, 2007
    Messages:
    428
    Occupation:
    plc programmer
    Location:
    Itzehoe
    Ratings:
    +211 / 0
    Home Country:
    Germany Germany
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Like Us On Facebook

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!