XamarinMediaManager
XamarinMediaManager copied to clipboard
Duration returning as zero on Audio
🐛 Bug Report
When trying to retrieve the total duration of audio file it is returning 00:00:00
Expected behaviour
Duration of the audio file to be returned
Reproduction steps
var mediaItem = await CrossMediaManager.Current.Play(audioFile);
var duration = mediaItem.Duration;
await DisplayAlert("info", duration.ToString(), "OK");
Configuration
Version: 1.1.1
Platform: Xamarin.Forms
did you find how to solve this error?
I'm seeing this same issue on iOS only - Android works as expected returning the duration value.