Webradio (4 Viewers)

raffe

Portal Pro
March 28, 2008
261
82
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,741
    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,566
    3,946
    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
    53
    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,741
    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,741
    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
    53
    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
    53
    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

    Similar threads

    • Sticky
    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
    735
    • Sticky
    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 next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-5221] - Core: Fix...
    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...
    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
    0
    Views
    1K
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core: Fix FrameGrabbing for EVR [MP1-5222] - TV Server: Fix ISO-8859-10/14 DVB text encodings [MP1-5224] - Fix Card "CancelTune" request Since Pre-Release : New: Since Pre-Release : Improvement / Rework...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    Replies
    0
    Views
    2K
    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
    2K
    I can't believe I missed the new feature, pixel shaders. :) Thankyou guys for all your work (y)
    I can't believe I missed the new feature, pixel shaders. :) Thankyou guys for all your work (y)
    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
    2K
    Top Bottom