Commit ac30072c authored by Felix Paul Kühne's avatar Felix Paul Kühne

playback: set a movie's thumbnail as media artwork for the OS remote

This results in an appearence similar to this: http://cl.ly/image/3t3f0U2D1j06
parent cfc0c91a
......@@ -1257,13 +1257,16 @@
NSString *albumName;
NSString *trackNumber;
self.artworkImageView.hidden = self.trackNameLabel.hidden = self.artistNameLabel.hidden = self.albumNameLabel.hidden = !_mediaPlayer.hasVideoOut;
if (item) {
if (item.isAlbumTrack) {
title = item.albumTrack.title;
artist = item.albumTrack.artist;
albumName = item.albumTrack.album.name;
self.artworkImageView.image = [VLCThumbnailsCache thumbnailForMediaFile:item];
}
} else
title = item.title;
self.artworkImageView.image = [VLCThumbnailsCache thumbnailForMediaFile:item];
} else {
NSDictionary * metaDict = _mediaPlayer.media.metaDictionary;
if (metaDict) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment