Depending on the platform and the media item metadata will be extracted from ID3 data in the file.
CrossMediaManager.Current.Queue.Current.Title; CrossMediaManager.Current.Queue.Current.AlbumArt; CrossMediaManager.Current.Queue.Current.*
Since the metadata might not be available immediately you can subscribe for updates like this:
var mediaItem = await CrossMediaManager.Current.Play("https://ia800806.us.archive.org/15/items/Mp3Playlist_555/AaronNeville-CrazyLove.mp3"); mediaItem.MetadataUpdated += (sender, args) => { var title = args.MediaItem.Title; };
Alternatively you could also use the PropertyChanged event to see updates to the metadata.
PropertyChanged
You can also get a single frame from a video:
string url = "https://something.com/something.mov"; var mediaItem = await CrossMediaManager.Current.Extractor.CreateMediaItem(url); var image = await CrossMediaManager.Current.Extractor.GetVideoFrame(mediaItem, TimeSpan.FromSeconds(1)); ImageSource imageSource = image.ToImageSource(); FormsImage.Source = imageSource;
There was an error while loading. Please reload this page.