[solved] Latest Media Handler - Skin settings - Custom latests items number (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    13,750
    8,296
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag
    @catavolt @CyberSimian
    Try with LMH Version, put LatestMediaHandler.SkinSettings.xml to skin or theme folder ... and ...
    XML:
    <?xml version="1.0" encoding="utf-8"?>
    <settings>
      <main>
         <latestscount>3</latestscount>
         <tvlatestscount>4</tvlatestscount>
      </main>
    </settings>
     

    Attachments

    • LMH-CustomItems.zip
      250.6 KB · Views: 24

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    13,750
    8,296
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag
    • Thread starter
    • Moderator
    • #2
    @catavolt @CyberSimian
    One problem, play control for Latests only 4 by each type of latests ... :(
    Ie for Music:
    Code:
        public const int Play1ControlID = 91919997;
        public const int Play2ControlID = 91919998;
        public const int Play3ControlID = 91919999;
        public const int Play4ControlID = 91919901;
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,310
    1,403
    Southampton
    Home Country
    United Kingdom United Kingdom
    Country flag
    One problem, play control for Latests only 4 by each type of latests ... :( i.e. for Music:
    I don't use MP for music (other than for testing), so I am not sure what is the significance of the play controls for latest media:

    (1) Would a user want more than four for music? (I don't know the answer to this question. :confused:)

    (2) If four is all that is needed for music, does it matter that the limit for music is different from the limit for TV? (I don't know the answer to this question, either. :confused:)

    -- from CyberSimian in the UK
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    13,750
    8,296
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag
    • Thread starter
    • Moderator
    • #4
    All Latests type - Music, TV, Video ... have 4 playing controls... If LMH skin settings set number of TV Latests to 5 then one control - without play and context menu future.

    --
    WBR, ajs :):whistle::coffee:
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    13,750
    8,296
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag
    • Thread starter
    • Moderator
    • #5
    Playing control allows you to play the desired item directly from the home screen, change the type, update, etc.

    --
    WBR, ajs :):whistle::coffee:
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    13,750
    8,296
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag
    • Thread starter
    • Moderator
    • #6
    I add to skin setting additional IDs if needed:
    XML:
    <?xml version="1.0" encoding="utf-8"?>
    <settings>
      <main>
         <latestscount>3</latestscount>
         <tvlatestscount>3</tvlatestscount>
      </main>
      <playids>
        <video> <!-- If latestscount more than 4 - add additional Play IDs for skin -->
          <id>NNN</id>
          <id>NNN</id>
          <id>NNN</id>
        </video>
        <movingpictures> <!-- If latestscount more than 4 - add additional Play IDs for skin -->
          <id>NNN</id>
          <id>NNN</id>
          <id>NNN</id>
        </movingpictures>
        <myfilms> <!-- If latestscount more than 4 - add additional Play IDs for skin -->
          <id>NNN</id>
          <id>NNN</id>
          <id>NNN</id>
        </myfilms>
        <tvseries> <!-- If latestscount more than 4 - add additional Play IDs for skin -->
          <id>NNN</id>
          <id>NNN</id>
          <id>NNN</id>
        </tvseries>
        <mvcentral> <!-- If latestscount more than 4 - add additional Play IDs for skin -->
          <id>NNN</id>
          <id>NNN</id>
          <id>NNN</id>
        </mvcentral>
        <music> <!-- If latestscount more than 4 - add additional Play IDs for skin -->
          <id>NNN</id>
          <id>NNN</id>
          <id>NNN</id>
        </music>
        <pictures> <!-- If latestscount more than 4 - add additional Play IDs for skin -->
          <id>NNN</id>
          <id>NNN</id>
          <id>NNN</id>
        </pictures>
        <tv> <!-- If tvlatestscount more than 4 - add additional Play IDs for skin -->
          <id>NNN</id>
          <id>NNN</id>
          <id>NNN</id>
        </tv>
      </playids>
    </settings>
    If ID added, in log:
    Code:
    ... Skin settings - TV, add additional ID: NNN

    PS: Not tested :)
     

    Attachments

    • LatestMediaHandler-CustomCount-II.dll.zip
      251.7 KB · Views: 17

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    13,324
    9,596
    Lanzarote
    Home Country
    Germany Germany
    Country flag
    If needed more, I use the facade (up to 10) and that uses only one ID ;)
    I do this for all supported plugins except ongoing recordings. There I use the available properties we have so far ;)
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    13,750
    8,296
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag
    • Thread starter
    • Moderator
    • #8
    The opportunity is added, you can use it, but you can not.
    As well as additional facades. :)
     

    Users who are viewing this thread

    Similar threads

    Yes I thought you and others might be interested in the logic I have used in some of the controls though. I am feeling rather smug with myself about the arrows on the left and right hand side of the LatestMH thumbnail on screen 601 for example ;) and the visibility condition
    Yes I thought you and others might be interested in the logic I have used in some of the controls though. I am feeling rather smug...
    Afternoon all, The Latest Media Handler facade and buttons (ids 919199840, 91919984 et al.) are only working for me on the basic...
    Replies
    19
    Views
    1K
    Many thanks to you all especially ajs & catavolt. We seem to have success. I have attached a snippet of my code from my BasicHome xml, if anyone wants to play with it. I'm using a DefaultWideHD theme.
    Many thanks to you all especially ajs & catavolt. We seem to have success. I have attached a snippet of my code from my BasicHome...
    Good evening :) Can anybody think of a way of making a window reload/refresh or a skin control reload/update after a TV server...
    Replies
    26
    Views
    2K
    It is looking and working very well now and I am almost at the point of switching my HTPC to MP2, madvr would definitely push me over the edge for sure.;)
    It is looking and working very well now and I am almost at the point of switching my HTPC to MP2, madvr would definitely push me...
    We are proud to present MediaPortal 2.3 MediaPortal 2.3 is a full-blown media center software that addresses the most common user...
    Replies
    4
    Views
    2K
    Gold star for you thanks i missed those checks (y)
    Gold star for you thanks i missed those checks (y)
    @ajs I can't get LMH to pickup latest tvseries in the latest prerelease any ideas ? <?xml version="1.0" encoding="utf-8"?>...
    Replies
    2
    Views
    1K
    I have just tested the dll, and it works fine on my thpc too :)(y) Thanks
    I have just tested the dll, and it works fine on my thpc too :)(y) Thanks
    Since the update to MediaPortal 1.27 it takes about three seconds to jump to the next or previous track. Also adding files and...
    Replies
    11
    Views
    2K
    Top Bottom