Exemplo n.º 1
0
        public void Initialise(string fanartType = null)
        {
            Uri = DlnaResourceAccessUtils.GetThumbnailBaseURL(MediaItemId, Client, fanartType ?? _defaultFanArtMediaType);

            string profileId = "JPEG_TN";
            string mimeType  = "image/jpeg";

            DlnaProfiles.TryFindCompatibleProfile(Client, DlnaProfiles.ResolveImageProfile(ImageContainer.Jpeg, Client.Profile.Settings.Thumbnails.MaxWidth, Client.Profile.Settings.Thumbnails.MaxHeight),
                                                  ref profileId, ref mimeType);

            ProfileId = profileId;
            MimeType  = mimeType;
        }
Exemplo n.º 2
0
        public void Initialise(string channelName, bool isTv)
        {
            Uri = DlnaResourceAccessUtils.GetChannelLogoBaseURL(channelName, Client, isTv);

            string profileId = "JPEG_TN";
            string mimeType  = "image/jpeg";

            DlnaProfiles.TryFindCompatibleProfile(Client, DlnaProfiles.ResolveImageProfile(ImageContainer.Jpeg, Client.Profile.Settings.Thumbnails.MaxWidth, Client.Profile.Settings.Thumbnails.MaxHeight),
                                                  ref profileId, ref mimeType);

            ProfileId = profileId;
            MimeType  = mimeType;
        }