Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duration returning as zero on Audio #870

Open
sb111111111 opened this issue Jul 28, 2022 · 2 comments
Open

Duration returning as zero on Audio #870

sb111111111 opened this issue Jul 28, 2022 · 2 comments

Comments

@sb111111111
Copy link

馃悰 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
Copy link

did you find how to solve this error?

@c0demak3r
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants