bluefireteam / audioplayers

A Flutter package to play multiple audio files simultaneously (Android/iOS/web/Linux/Windows/macOS)
https://pub.dartlang.org/packages/audioplayers
MIT License
1.97k stars 838 forks source link

Position error #1815

Open roly7210 opened 2 months ago

roly7210 commented 2 months ago

Checklist

Current bug behaviour

When the mp3 audio is playing, the onPositionChanged method begins to return the correct position but, after a few seconds, the position value is reset even though the audio continues to play correctly.

Expected behaviour

The position value must not be reset.

Steps to reproduce

No response

Code sample

No response

Affected platforms

Android, iOS

Platform details

No response

AudioPlayers Version

6.0.0

Build mode

debug, release

Audio Files/URLs/Sources

No response

Screenshots

No response

Logs

my relevant logs
Full Logs ``` my full logs or a link to a gist ``` Flutter doctor: ``` Output of: flutter doctor -v ```

Related issues / more information

No response

Working on PR

no way

dleurs commented 1 month ago

I have the same issue on Android on my project, but also on the example of this repo, on Android.

We can see that at around 9:30s / 10:30s, the position returns to 0 for no reason.

Jul-14-2024 13-33-09

https://youtu.be/EF4CoXBBmu8