Webradio (3 Viewers)

chefkoch

Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    I noticed yet another thing: issue #10 It might be useful to hide the label "City:" (or country......) if the actual station does not contain information about it.

    A wiki page for further documentation, changelog, specification about file formats and or xml structure is also available at http://wiki.team-mediaportal.com/2_MEDIAPORTAL_2/Extensions/Webradio
     
    Last edited:

    breese

    Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    65
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    I have 2 issues
    It does not like the notes
    <!-- Playlists / Streams
    mp3 Stream – hohe Qualität: http://hub.fueralle.org/coloradio160mp3.m3u
    ogg Stream – hohe Qualität: http://hub.fueralle.org/coloradio160ogg.m3u
    mp3 Stream – niedrige Bitrate: http://hub.fueralle.org/coloradio56mp3.m3u
    aac Stream – niedrige Bitrate: http://hub.fueralle.org/coloradio48aac.m3u
    -->
    When I try to start the stream after removing the notes I get
    There is no player registered to play edia item 'coloradio_160.mp3'
    There are not otions in Settings.... Ideas?
     

    BigGranu

    Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    53
    Home Country
    Germany Germany
    I have now read all the Issues and the Ideas again in peace.
    Much has to do with the Streamlist (more Streams for a Station, RegionInfo for the Country, Description in other Languages, ...).
    Now i have create a new Structure of the List, which all the Features.
    Before I use this Structure, I will discuss.

    Is that OK? Or we need more fields?
    XML:
    <?xml version="1.0"?>
    <MyStreams xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <!-- Streamlistversion -->
      <Version>1</Version>
      <StreamList>
            <!-- All Informations about the current Station -->
        <MyStream>
                <!-- running Number (No duplicates!) -->
          <ID>10000</ID>
                <!-- Titel of the Radiostation -->
          <Titel>Radio 100FM</Titel>
                <!-- List of available Streams for this Station -->
          <Url>
                    <!-- All Informations about the current Stream -->
            <StreamUrls>
                        <!-- The Text that is displayed in the Selectdialog -->
                        <!-- If only one Stream in list, is not used. The Dialog will not displayed. -->
              <Info>Orginal</Info>
                        <!-- Typ of current Stream -->
              <Typ>mp3</Typ>
                        <!-- Bitrate of the current Stream -->
              <Bitrate>128 kbps</Bitrate>
                        <!-- StreamUrl of the current Stream -->
              <Url>http://onair.100fmlive.dk/100fm_live.mp3</Url>
            </StreamUrls>
                    <StreamUrls>
              <Info>Stream 2</Info>
              <Typ>mp3</Typ>
              <Bitrate>256 kbps</Bitrate>
              <Url>http://onair.100fmlive.dk/100fm_live.mp3</Url>
            </StreamUrls>
          </Url>
                <!-- List of available Discriptions for this Stream -->
          <Description>
                    <!-- All Informations about the current Description -->
            <StreamDescriptions>
                        <!-- The Code of the Language in which the Description -->
              <LngCode>DE</LngCode>
                        <!-- The Description in particular Language -->
              <Description>Der beliebte Prviatsender aus Dänemark spielt auf dieser Welle frische Hits auf.</Description>
            </StreamDescriptions>
                    <StreamDescriptions>
              <LngCode>EN</LngCode>
              <Description>The popular Prviatsender from Denmark plays on this fresh wave hits.</Description>
            </StreamDescriptions>
          </Description>
                <!-- The Country of the current Station (use as Fallbacktext) -->
          <Country>Dänemark</Country>
                <!-- The Countrycode of the current Station (use as RegionInfo and shoe in Plugin) -->
          <CountryCode>DK</CountryCode>
                <!-- City of the current Station -->
          <City>Kopenhagen</City>
                <!-- All Gengres of the current Station. (comma-separated) -->
          <Genres>Mainstream, Pop</Genres>
                <!-- Hompage of the current Station (not used yet) -->
          <Home>http://radio100fm.dk/</Home>
                <!-- Logo of the current Station -->
          <Logo>http://static.radio.de/images/broadcasts/4626_4.gif</Logo>
        </MyStream>
      </StreamList>
    </MyStreams>
     
    Last edited by a moderator:

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    Now i have create a new Structure of the List, which all the Features.
    Before I use this Structure, I will discuss.
    That's a good idea the more people have a look at it and raise approvals or improvement suggestions the better it might be.

    @offbyone can you take a look at the list file as well please? With OnlineVideos you are already have a good experience what might be needed for plugin providing access to online content from various site/sources ...

    Is that OK? Or we need more fields?

    XML:
          <Description>
                    <!-- All Informations about the current Description -->
            <StreamDescriptions>
                        <!-- The Code of the Language in which the Description -->
              <LngCode>DE</LngCode>
                        <!-- The Description in particular Language -->
              <Description>Der beliebte Prviatsender aus Dänemark spielt auf dieser Welle frische Hits auf.</Description>
            </StreamDescriptions>
                    <StreamDescriptions>
              <LngCode>EN</LngCode>
              <Description>The popular Prviatsender from Denmark plays on this fresh wave hits.</Description>
            </StreamDescriptions>
          </Description>
    Having the description multi language might be nice to have for bigger stations, but would really be a rare use case imo. Either it is not being updated, not used or very inconsistent. I am not sure if this would be required. Especially looking at the file size of the complete list: It's already 2,63MB. Storing all stations in one xml which gets updated completely loaded for every new version. <Description><StreamDescriptions><Description> for a single description is much overhead plus the closing nodes.

    Same goes for the Stream URLs. Maybe using attributes would make these more efficient.
    Here is an example: It contains exactly the same information, but requires a lot less space:
    XML:
    <?xml version="1.0" encoding="utf-8"?>
    <WebradioStreams xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <!-- Streamlistversion -->
      <Version>1</Version>
      <Streams>
            <!-- All Informations about the current Station -->
        <Stream id="10000" title="Radio 100FM" country="DK" city="Kopenhagen" >
          <Description>Der beliebte Prviatsender aus Dänemark spielt auf dieser Welle frische Hits auf.</Description>
          <StreamUrls>
            <StreamUrl name="Orginal" format="mp3" bitrate="128 kbps">http://onair.100fmlive.dk/100fm_live.mp3</StreamUrl>
            <StreamUrl name="Stream 2" format="mp3" bitrate="256 kbps">http://onair.100fmlive.dk/100fm_live.mp3</StreamUrl>
          </StreamUrls>
                <!-- All Gengres of the current Station. (comma-separated) -->
          <Genres>Mainstream, Pop</Genres>
                <!-- Hompage of the current Station (not used yet) -->
          <Home>http://radio100fm.dk/</Home>
                <!-- Logo of the current Station -->
          <Logo>http://static.radio.de/images/broadcasts/4626_4.gif</Logo>
        </Stream>
      </Streams>
    </WebradioStreams>
    StreamURLs and StreamURL could also be URLs and URL.
    Genres, Home, Logo are not changed yet, could be, but don't have to:

    I am still not sure about the localizable description, might be a bit over-engineered.
    The genres also can be multi-language, but don't have to.

    What about the id? I expect this is required for defining the favourites, right?
    Because it might become a bit tricky when adding new streams and there might be duplicated ones, or .... not sure if there is an alternative, the station name also can be duplicated easily across different countries/regions... so it might not be an alternative.

    Regarding the stream selection in GUI, I would not prefer asking the user everytime. Maybe defining a priority list for formats, i.e. mp3 > ogg > aac.... within the plugin code and then using the best bitrate. If the playback fails, try the next one. If the playback is fine the user might have the option within the GUI (context menu or side menu) to switch manually to an alternative stream.
    (but how storing the preferred stream by the user???)
    He could either be able to change the format priority or for specific a station define the preferred stream.

    So now the ultimate comfort solution ;) :
    After manually changing the stream to an alternative url, a successful start of playback and an additional timeout of 30secs the plugin asks the user whether he would like to prefer this stream for this station in the future as well. If the user confirms this preferred configuration of station and stream is stored in separated settings file. If the user does not answer the question, maybe after a timeout of 2 minutes, the dialog just disappears.

    Should users be able to report broken streams from within the plugin like in OnlineVideos?

    So these are the suggestions/thoughts from my side.

    BTW: I hope it's okay I the xml in your post from attachment to the message, easier to read it for others ;)
    Especially because the xml is not too much ;)
     
    Last edited:

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    @chefkoch I tested Coloradio. It works fine. I cant find a Problem.:(
    Thx for testing
    I am using a custom build using latest Bass.NET 2.4.10.3 (Basslibraries and webradio). So ignore it for now. I'll retest with alpha3 and webradio plugin later (in a few weeks ;) ) and report if I still have issues.
     

    Users who are viewing this thread

    Similar threads

    Didn't know computers are available in Canada's jails... :p
    Didn't know computers are available in Canada's jails... :p
    Hi folks, basically I have this m3u list with links I am trying to scan with the TV configuration tool but all the channels even...
    Replies
    5
    Views
    502
    • Sticky
    MP1 MP2 [News] MediaPortal 2 - 2.5 Release DE
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    We are proud to present MediaPortal 2.5 MediaPortal 2.5 is a full-blown media center software that addresses most common user...
    Replies
    70
    Views
    5K
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    40
    Views
    4K
    • Sticky
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested [2024-03-03 18:26:58,262] [Log ] [MPMain ] [DEBUG] - Main: TV service found. Checking status... [2024-03-03 18:26:58,263] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested...
    MediaPortal 1.33 Release Written by Team-MediaPortal. We have just released MediaPortal 1.33 - Springtime / 20th Anniversary...
    Replies
    7
    Views
    761
    I've setup my HDHomeRun in MP1 as (4) IPTV cards rather than Atsc. I can see the (4) Atsc cards, but just have them disabled. I did it this way so I didn't have to edit the channel names every time tested a new TV-server install. Anyway, it works. I don't know if this would get you past the BDA driver issue. I'll provide more...
    I've setup my HDHomeRun in MP1 as (4) IPTV cards rather than Atsc. I can see the (4) Atsc cards, but just have them disabled. I...
    I am brand new to MediaPortal. I have installed MP 2.4.1 on Windows 10. It is a fresh install and fully up to date. I have an...
    Replies
    19
    Views
    1K
    Top Bottom