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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The audioplayers plugin for Android has an issue related to audio seeking precision #1792

Open
2 tasks done
ahmedelsayeda456202 opened this issue Apr 22, 2024 · 0 comments
Open
2 tasks done
Labels

Comments

@ahmedelsayeda456202
Copy link

Checklist

  • I read the troubleshooting guide before raising this issue
  • I made sure that the issue I am raising doesn't already exist

Current bug behaviour

The audioplayers plugin for Android has an issue related to audio seeking precision
seek method doesn't work precisely

Expected behaviour

it should seek to correct precise position for example :
231420 milliseconds
but the audio starts before that

Steps to reproduce

  1. Execute flutter run on the code sample
  2. ...
  3. ...

Code sample

Future _playAudio() async {
try {
await _audioPlayer.seek(const Duration(milliseconds: 293820));
await _audioPlayer.play();
setState(() {
_isPlaying = true;
});
} catch (e) {
print('Failed to play audio: $e');
}
}

Affected platforms

Android

Platform details

No response

AudioPlayers Version

audioplayers: ^6.0.0

Build mode

debug

Audio Files/URLs/Sources

https://download.quranicaudio.com/qdc/abdurrahmaan_as_sudais/murattal/2.mp3

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

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

No branches or pull requests

1 participant