Baseflow / XamarinMediaManager

Cross platform Xamarin plugin to play and control Audio and Video
https://baseflow.com
MIT License
761 stars 304 forks source link

Duration returning as zero on Audio #870

Open sb111111111 opened 1 year ago

sb111111111 commented 1 year ago

🐛 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

RamyOscar commented 1 year ago

did you find how to solve this error?

c0demak3r commented 1 year ago

I'm seeing this same issue on iOS only - Android works as expected returning the duration value.