Commit f155c0be authored by Axelander's avatar Axelander

Fixed Missing Cover in DisplayProperties (issue #3)

parent 05b63517
......@@ -7,6 +7,7 @@ using System.Threading.Tasks;
using Windows.Media;
using Windows.Media.Playback;
using Windows.Storage;
using Windows.Storage.Streams;
namespace SonicStreamer.Common.System
{
......@@ -51,6 +52,9 @@ namespace SonicStreamer.Common.System
displayProperties.MusicProperties.Title = playableObject.Name;
displayProperties.MusicProperties.Artist = playableObject.Artist;
displayProperties.MusicProperties.AlbumTitle = playableObject.Album;
displayProperties.Thumbnail = (playableObject.Cover != null)
? RandomAccessStreamReference.CreateFromUri(new Uri(playableObject.Cover.Uri))
: null;
var track = playableObject as Track;
if (track != null)
{
......
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