[Approved] Start Music with parameter (1 Viewer)

jameson_uk

Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,257
    2,533
    Birmingham
    Home Country
    United Kingdom United Kingdom
    This is just implementing the open a plugin with parameter patch for music views

    Is expecting the view name as appears in config as the parameter (so for default views this will be the string ID not the actual name)
     

    Attachments

    • music_plugin_start_parameter.patch
      1.2 KB

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    41
    Austria
    Home Country
    Austria Austria
    Nice, so for testing purposes, could you provide
    a) a list of all (some) possible options
    b) a xml file (e.g. BasicHome) that links to a couple of different views

    :D
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,257
    2,533
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Nice, so for testing purposes, could you provide
    a) a list of all (some) possible options
    b) a xml file (e.g. BasicHome) that links to a couple of different views

    :D
    a) the options are based on what you have setup in your views (the values needed as the parameter are the ones highlighted in red)
    music_start_views.JPG
    the screen ID is 504

    b) I will try but my skinning powers are useless....
    Do you have a basic home I could hack? (for testing I hacked the playlist button on Maya now playing screen which was already a hyperlink button so I just added the parameter)
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    41
    Austria
    Home Country
    Austria Austria
    b) I will try but my skinning powers are useless....
    Do you have a basic home I could hack? (for testing I hacked the playlist button on Maya now playing screen which was already a hyperlink button so I just added the parameter)

    I always change the 5 basichome buttons of B3/B3Wide (hyperlink and hyperlinkParameter) to what I need... ;)
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,257
    2,533
    Birmingham
    Home Country
    United Kingdom United Kingdom
    ok hacked B3W basic home

    Now the links will go to
    Videos => artists
    Pictures => album artists
    Weather => albums
    Music => genres
    TV => years
     

    Attachments

    • BasicHome.xml
      9 KB

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    Is there a nice way by the API to retrieve the list of views a user has defined?

    User case is that a Skin Editor can provide this list to make it easier for user to generate a menu of their favourite views.
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,257
    2,533
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Is there a nice way by the API to retrieve the list of views a user has defined?

    User case is that a Skin Editor can provide this list to make it easier for user to generate a menu of their favourite views.

    yes :) have not tested but code is something like this
    Code:
    MusicViewHandler handler = new MusicViewHandler();
    foreach(ViewDefinition v in handler.Views)
    {
      // do something with v.name
    }

    This is all in the windowsplugins.dll and MediaPortal.GUI.Music namespace but I think it should be usable in other plugins if you add a reference to windowsplugins.dll
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    Nice, so this will be similar for MyVideos etc when that supports jump to view as well ;)
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,257
    2,533
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Nice, so this will be similar for MyVideos etc when that supports jump to view as well ;)

    This will be videohandler instead of musichandler but the rest of the code will match. I have asked Deda about doing this for videos so should be done soon.

    Also v.localizedname will give you a display name ( v.name itself will display the string id for localized strings)
     

    Users who are viewing this thread

    Similar threads

    I do have most of my Music tagged with Lyrics and it works with My Lyrics. If I remember correctly, you have to set: <Don't search songs with Lyrics in Music tag>
    I do have most of my Music tagged with Lyrics and it works with My Lyrics. If I remember correctly, you have to set: <Don't search...
    Hi. Setting up MyLyrics now. I got version 2.2.2.295 from My Lyrics 2.2.0 for MP 1.10 Final, and above (31-12-2014) . I'm planning...
    Replies
    1
    Views
    2K
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be. :( Perhaps someone else will post with some suggestions. :unsure: -- from CyberSimian in the UK
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be...
    Would appreciate it if someone could solve (or point me in the right direction to resolve) this issue. I have “MultiSeat”...
    Replies
    4
    Views
    796
    So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore Windows resolution/size changes" In Codecs and Render, try selecting the specific audio device rather than "Default DirectSound device" Just ideas, no guarantee this will do anything. If this doesn't work, I...
    So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore...
    I'm running MP1 as a client only on this: https://www.amazon.com/dp/B0DZX5DWS5?ref_=pe_123509780_1038749300_t_fed_asin_title&th=1...
    Replies
    4
    Views
    661
    Sorry, it's my fault -- I did not notice that you are using MP2. :( MP1 has a separate configuration utility, similar to "TV Server Config". I have tried MP2 only a couple of times, and have never used it seriously. I don't know what MP2 supports with regard to adjusting audio delay, but I do know that all of the adjustments of...
    Sorry, it's my fault -- I did not notice that you are using MP2. :( MP1 has a separate configuration utility, similar to "TV...
    Hi. I recently upgraded my home cinema AVR which also meant changed from sending audio from my HTPC as 5.1 using optical to 7.1...
    Replies
    5
    Views
    1K
    Thank you for pointing out that my analysis may be less than accurate. :eek: :p Although the change to TV channel 71 may not also have been applied to the independent radio channels (different MUXes), the logs that I prepared for one of the development team does show a difference between channel 704 ("BBC Radio 4") and channel 731...
    Thank you for pointing out that my analysis may be less than accurate. :eek: :p Although the change to TV channel 71 may not also...
    I have just discovered that I can no longer receive any of the independent radio channels broadcast on DVB-T in the UK. In...
    Replies
    10
    Views
    2K
    Top Bottom