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.98k stars 843 forks source link

Can't resume after stopped in android #1820

Open 2shrestha22 opened 2 months ago

2shrestha22 commented 2 months ago

Checklist

Current bug behaviour

After stopping a audio stream it can't be resumed. Resuming the audio stream does nothing on android.

What is working:

Expected behaviour

A stopped audio should be resumed when calling resume();

Steps to reproduce

  1. Play an audio stream on android
  2. Stop the audio
  3. Resume the audio

Code sample

Code sample ```dart /// Play focused station. Future play() async { await _audioPlayer.resume(); } // Pause focused station. Future pause() async { await _audioPlayer.pause(); } Future stop() => _audioPlayer.stop(); ```

Affected platforms

Android

Platform details

No response

AudioPlayers Version

6.0.0

Build mode

debug, profile, release

Audio Files/URLs/Sources

https://radio-broadcast.ekantipur.com/stream

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

AndreasGradinger commented 2 weeks ago

I have the same issue - did you find any solution?

2shrestha22 commented 1 week ago

I have the same issue - did you find any solution?

I switched to just_audio.

duytq2dsv commented 2 days ago

I have the same issue