I am using the new dotnet maui MediaElement, and before letting my user pick an MP3 file to play, I want to list the tracks and their durations – in my case MP3 files. However unless you get the MediaElement to play the file, and wait for the mediaOpened event, the duration is zero, which is not helpful. Any ideas on how I can read MP3 file duration reliably on Maui cross platform ?
For windows the excellent nuget package nAudio works with 2 lines of code, but crashes on the iPhone.