Webradio (3 Viewers)

raffe

Portal Pro
March 28, 2008
270
94
Hi!
I still use this plugin and I love it :)
But I'm starting to think that maybe it would be better with a SQLite database instead of a XML-file. The size would probably be smaller and it would most likely be faster.
The problem is that I'm not a developer, so maybe I'm one the wrong track here.

What do you say about that idea?
 

ge2301

Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,743
    3,501
    Stuttgart
    Home Country
    Germany Germany
    Hello Dev's

    currently I'm creating the WebRadio design for the coming WMCSkin. I'd like to pep up a few things, for example also show language flags in listview.
    I could easily do it by linking the image source to the language string. But the problem is that the language names are also localized, so I'd need an unique language ID instead.
    Perhaps it's already available in the Model of WebRadio, I'm just not able to understand the code ;)

    Any short-time help is very appreciated! :)

    Unbenannt.jpg
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,580
    3,967
    Lehmden
    Home Country
    Germany Germany
    Hi.
    Sadly @BigGranu wasn't around here since month, so most likely someone else need to take over this project... Same is for App Launcher (very important plugin imho) and Cinema. Especially the later needs some maintenance to adjust it to the new fanart handling nicely.
     

    BigGranu

    Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    54
    Home Country
    Germany Germany
    Hi Guys.
    But the problem is that the language names are also localized
    It is great. Or? ;)
    so I'd need an unique language ID instead.
    Sorry. A language ID does not exist. But, we have a unique (ISO 639-1) Country in Streamlist.
    XML:
    <MyStream City="Radolfzell" Country="DE" Title="007FM">
    This string I use also in the localization.
    XML:
    <string name="Country.DE">Deutschland</string>
    Can you use this? I dont no.
    Probably I have to adjust the plugin, so you have access to this field.
    Where are stored the pictures(Flags)?
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,743
    3,501
    Stuttgart
    Home Country
    Germany Germany
    Hi BigGranu,

    good to see you again :)
    <MyStream City="Radolfzell" Country="DE" Title="007FM">
    That should work I think. How can I access it from xaml? Can you give an example, if I e.g. would like to place a label with the country?

    Where are stored the pictures(Flags)?
    I have a folder /Images/LanguageFlags/ where all flags are stored and luckily they are already in the format EN,DE,FR, ... :cool: So would be perfect, if it works out.
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,743
    3,501
    Stuttgart
    Home Country
    Germany Germany
    btw. Latest version of MP2 crashes when a stream is playing and I want to see the "Infos" of the stream.
    I can shortly see the infos and then MP2 crashes, no error logs. In case you have any idea what I could check, I'll do so.
    Currently I can not skin the remining screens due to the crash.
     

    BigGranu

    Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    54
    Home Country
    Germany Germany
    btw. Latest version of MP2 crashes when a stream is playing and I want to see the "Infos" of the stream.
    :( I will look that.
    For the Flags. At the Moment i use this for the "Country".
    XML:
    <Label VerticalAlignment="Center" HorizontalAlignment="Left" DataContext="{Binding ElementName=lvStreams,Path=CurrentItem}"
                  Content="{Binding [Country]}" FontSize="{ThemeResource SmallerFontSize}" Color="{ThemeResource TextColor}"/>
    If Generate a Field names "CountryCode" thats hold the string "DE", you can use this?
    I have no realy Plan from XAML. :oops:
    Or what is the best for you?
     

    BigGranu

    Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    54
    Home Country
    Germany Germany
    I attached a first Testversion. I add all Infos. For the Flags use "CountryCode".
    C#:
    item.SetLabel("Name", ms.Title);
    item.SetLabel("Country", "[Country." + ms.Country + "]");
    item.SetLabel("CountryCode", ms.Country);
    item.SetLabel("City", ms.City);
    item.SetLabel("Genres", ms.Genres);
    item.SetLabel("Bitrate", ms.StreamUrls[0].Bitrate);
    item.SetLabel("StreamProvider", ms.StreamUrls[0].Provider);
    item.SetLabel("StreamFrequenz", ms.StreamUrls[0].Frequenz);
    item.SetLabel("StreamMode", ms.StreamUrls[0].Mode);
    item.SetLabel("StreamName", ms.StreamUrls[0].Name);
    item.SetLabel("StreamTyp", ms.StreamUrls[0].Typ);
    item.SetLabel("Logo", SetStreamLogo(ms));
    item.SetLabel("ImageSrc", SetStreamLogo(ms));
    item.SetLabel("Description", SetStreamDescription(ms));
    item.SetLabel("Language", "[Language." + ms.Language + "]");
    item.SetLabel("LanguageCode", ms.Language);
    item.SetLabel("Indx", indx + "/" + list.Count);
    I removed the Fanart. :oops:
    I have no plan, how i can use it with the new Fanartmodell.
     

    Attachments

    • Webradio.zip
      746.7 KB

    Users who are viewing this thread


    Write your reply...

    Similar threads

    Thanks guys. Ok, spent the (whole) weekend on this lol. First; TVHeadend/Kodi.... Nah. Given up on that - 'non-tech'; its horrible. 'Tech' - a few reasons but mostly that it is buggy. It is actually a real shame as it does have potential and promises a lot (was great to have Kodi on my phone and be able to watch live/recordings...
    Thanks guys. Ok, spent the (whole) weekend on this lol. First; TVHeadend/Kodi.... Nah. Given up on that - 'non-tech'; its...
    So, a very long-time MP fan here. Family have used MP (Only MP1 as all addicted to Titan skin) for ever - for my 13yo, thats 100%...
    Replies
    5
    Views
    487
    • Sticky
    Upgrade install on MP 1.36 x64 proceeded without issue, everything I have tried so far is working and looking very good. Many Thanks(y):)
    Upgrade install on MP 1.36 x64 proceeded without issue, everything I have tried so far is working and looking very good. Many...
    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
    1
    Views
    676
    • Sticky
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    We have just released MediaPortal 1.37 - Willow x86 and x64 version. Highlights of this release Bugfixes: [MP1-5232] - GPU...
    Replies
    4
    Views
    818
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the Requirements and you've filled in your System Specs. Have a look at our MediaPortal Wiki! Maybe the solution is already there. Have a look at our Jira (Bug and Issue Tracker)and the threads in this section, maybe...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Replies
    0
    Views
    371
    All good now!!
    All good now!!
    We have just released MediaPortal 1.36 - Polar Express x86 and x64 version. Highlights of this release Bugfixes: [MP1-5229] -...
    Replies
    2
    Views
    2K
    Top Bottom