[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,760
    7,224
    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,760
    7,224
    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 don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback. If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo. I have...
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select...
    Not sure if this a a bug/config/settings problem. I am running a media portal 2.5 server with 2.41 client but it seems I get the...
    Replies
    1
    Views
    656
    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
    3K
    TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the plugin has. It might be 32-bit, or it might be "any cpu". The plugin is not listed by the "MP Extensions" tool, so I don't know whether it has been tested with the most-recent MP releases. -- from...
    TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the...
    I'm looking for a better recording scheduler. Many recording titles (at least in the UK) change between episodes, sometimes being...
    Replies
    4
    Views
    1K
    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
    1K
    4.5 is really old. I'm not sure 4.5.5 even is a version that actually existed. You should be able to install .NET Framework 4.8.0 on Windows 7 SP1
    4.5 is really old. I'm not sure 4.5.5 even is a version that actually existed. You should be able to install .NET Framework 4.8.0...
    My TV PC is more a cast-off on older hardware (a 'Quiet PC' i5 4690, 16GB ram, 2xSSD 1xHDD, system graphics), mainly as a cheap way...
    Replies
    5
    Views
    2K
    Top Bottom