Commit 09d75189 authored by Axelander's avatar Axelander

Fixed Thumbnail creation for System Media Transport Protocol using invalid Uri format (issue #47)

parent 259a3b45
......@@ -99,8 +99,8 @@ 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))
displayProperties.Thumbnail = Uri.TryCreate(playableObject.Cover.Uri, UriKind.Absolute, out Uri coverUri)
? RandomAccessStreamReference.CreateFromUri(coverUri)
: null;
var track = playableObject as Track;
if (track != null)
<ResourceDictionary xmlns="" xmlns:x="">
<Style x:Key="OrangeButtonStyle" TargetType="Button">
<Setter Property="Background" Value="Transparent" />
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