I'm creating a MediaSource directly from a URI which serves an MP3 file:
MediaSource mediaSource = MediaSource.CreateFromUri(new Uri(urlStr));
var mediaPlayer = new MediaPlayer();
await mediaSource.OpenAsync();
mediaPlayer.Source = mediaSource;
MyXamlMediaPlayerElement.SetMediaPlayer(mediaPlayer);
Everything loads fine and it plays back fine. But how can I obtain the metadata? I can only find documentation on obtaining a MusicProperties
object from a StorageFile
. Creating a file first is not an option as it takes way too long.