Hello,
Welcome to Microsoft Q&A!
@CyberSteve Since that you've found some approaches already, my suggestion is that you can try them all and choose one that is most suitable for your scenario.
I also want the bitrate, duration and path to be available for display when requested.
You could use VideoProperties Class or MusicProperties Class to get the bitrate, duration of the media file.
//if it's a video file.
Windows.Storage.FileProperties.VideoProperties videoProperties = await file.Properties.GetVideoPropertiesAsync();
//if it's a song file
Windows.Storage.FileProperties.MusicProperties musicProperties = await file.Properties.GetMusicPropertiesAsync();
Duration videoDuration = videoProperties.Duration;
uint videoBitrate = videoProperties.Bitrate;
string videoPath = file.Path;
Thank you.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.