WifiRemote for MP2 (1 Viewer)

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    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

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    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

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    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

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    So if I use FanArtConstants.FanArtType.Thumbnail for episodes + Aspects[SeriesAspect.ASPECT_ID][SeriesAspect.ATTR_EPISODENAME] it will give me an image?
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    What to use for: FanArtConstants.FanArtMediaType ?
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    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

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    That worked (y) Thank you very much
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    @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

    Top Bottom