Exemple #1
0
        private void OnPlayMedia(object sender, PlayMediaEventArgs e)
        {
            var thumbUri     = new Uri($"{App.mediaPath}\\{e.ViewMediaMetadata.YID}-medium.jpg", UriKind.Absolute);
            var mediaUri     = new Uri($"{App.mediaPath}\\{e.ViewMediaMetadata.YID}.{e.ViewMediaMetadata.MediaType}", UriKind.Absolute);
            var wallpaperUri = new Uri($"{App.mediaPath}\\{e.ViewMediaMetadata.YID}-high.jpg", UriKind.Absolute);

            viewMediaPlayer.OpenMediaUri(mediaUri, thumbUri, wallpaperUri);
            viewMediaPlayer.ShowHideMediaPlayer(true, e.ViewMediaMetadata.Title);
        }
 private void PlayMedia(object sender, PlayMediaEventArgs e)
 {
     viewMediaPlayer.OpenMediaUri(new Uri($"{App.mediaPath}\\{e.ViewMediaMetadata.YID}.mp4", UriKind.Absolute));
     viewMediaPlayer.ShowHideMediaPlayer(true, e.ViewMediaMetadata.Title);
 }