WifiRemote for MP2 (1 Viewer)

morpheus_xx

Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,463
    7,012
    Germany Germany
    Country flag
    This doesn't work yet: currently we have no "Episode" item, they are regular "VideoItems". That's why they doesn't contain series names etc.
    Maybe I was not completely right:
    How do you load your media items? If you include SeriesAspect as required aspect, you will have access to all series properties (Name, Season, Episode number...).
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #53
    Maybe a log example:
    GetArtworkResized: no fanart found - fanArtMediaType: Series, fanartType: Banner, name: Pilot
    This was requested by the client, "Pilot" is the Title from the Episode taken from the SeriesAspect. used fanArtMediaType and fanartType as in the quote :)
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,463
    7,012
    Germany Germany
    Country flag
    How do you load your media items? If you include SeriesAspect as required aspect, you will have access to all series properties (Name, Season, Episode number...).
    I guess code says more than 1000 words :)
    https://github.com/FreakyJ/MediaPor...s/WSS/stream/Images/GetArtworkResized.cs#L136
    This is what I've meant:
    https://github.com/FreakyJ/MediaPor.../stream/Images/GetArtworkResized.cs#L130-L131
    Episode itself won't have own Fanart, it will have a thumbnail
    If you like to get the series poster (or cover, fanart...) you will need to use SeriesAspect.ATTR_SERIESNAME as name
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #55
    So if I use FanArtConstants.FanArtType.Thumbnail for episodes + Aspects[SeriesAspect.ASPECT_ID][SeriesAspect.ATTR_EPISODENAME] it will give me an image?
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #56
    What to use for: FanArtConstants.FanArtMediaType ?
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #57
    I also don't get an image for this:
    Code:
    if (item.Aspects.ContainsKey(SeriesAspect.ASPECT_ID))
          {
            name = (string)item.Aspects[SeriesAspect.ASPECT_ID][SeriesAspect.ATTR_EPISODENAME];
            fanArtMediaType = FanArtConstants.FanArtMediaType.Undefined;
            fanartType = FanArtConstants.FanArtType.Thumbnail;
          }
    If an episode doesn't have a thumbnail, that's fine, but than I would like to get a thumbnail. Poster for Series and Season is working. Only the Episode is the problem...
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #59
    That worked (y) Thank you very much
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #60
    @morpheus_xx
    Could you tell me how to start playing a playlist? :)
    I can start a media item by calling PlayItemsModel.PlayItem(items[0]); is there a similar way for Playlists?

    Once it is playing I can do all sort of fancy stuff by using ServiceRegistration.Get<IPlayerContextManager>().CurrentPlayerContext.Playlist, but how to get the playlist playing? :D
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    R Problem with MP1 and WifiRemote Skins and Plugins Installer (MPEI) 8
    Scheibes Was passiert bei MP2? Allgemeines Support- und Diskussionsforum 9
    S Programmierte Aufnahme in MP2 - kein Aufwachen des PC Allgemeines Support- und Diskussionsforum 5
    morpheus_xx [WiP] "What's New" plugin for MP2 upgrades MediaPortal 2 5
    da3dsoul [Request] An MVP Plugin example for custom settings in MP2 Plugin Development 2
    morpheus_xx [Evaluate] Checking MP2 code portability to .Net Core MediaPortal 2 11
    da3dsoul Does MP2 not have any active devs? General 8
    da3dsoul MP2 Plugin - Getting Started (Directory Tree and Player) Plugin Development 27
    R [solved] Kein Player registriert Allgemeines Support- und Diskussionsforum 1
    -Merkur- MP2 Client startet nicht, "libXBMC_addon.dll" fehlt Allgemeines Support- und Diskussionsforum 1
    mp2-ulrich [solved] MP 2.2.3 spielt nur manche Sender Allgemeines Support- und Diskussionsforum 2
    H MP2 database won't keep in synch with recordings General 8
    H [solved] MP2 Wiedergabe von Aufnahmen und Live TV geht nicht Allgemeines Support- und Diskussionsforum 6
    ge2301 [WiP] MP2Web - A platform independent web client for MP2 MediaPortal 2 68
    F Problems with new install of MP2 Newcomers Forum 3
    catalpa Bug MP2-837 Allgemeines Support- und Diskussionsforum 2
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    bigboss97 Does anyone has a SoundGraph imon remote file for MP2 to share? General 0
    ge2301 Android based client for MP2 MediaPortal 2 3
    R MP2 GUI Issues General 7
    P [solved] MP2 new install, 2 x hdhomerun tuners, client on same PC unable to view TV & recordings Newcomers Forum 8
    Lichloathe MP2 importing keyart instead of poster General 0
    Lichloathe Trakt for MP2 question General 7
    C Streaming/transcoding MP2 vs MP1? General 4
    P MP 2 - Request to add an additional TV series Filename protocal Feature Requests 0
    Similar threads

























    Top Bottom