Baseflow / Baseflow/XamarinMediaManager

Duration returning as zero on Audio

Open
#870 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
763
Forks
299
PR merge metrics
No merged PRs in 30d

Description

## 🐛 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

Contributor guide

Open the contributing guide

Research direction

Start with the CrossMediaManager.Current.Play entry point and reproduce the reported Xamarin.Forms case using the steps in the issue. Trace how mediaItem.Duration is obtained for audio, then verify that it reports the file's actual duration rather than 00:00:00.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
audio-video-rtc, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.