How to check audio is completed or not?
On finished change icon from pause to play.
there is a way to listen to state changes you can use that
audioPlayer.playerStateStream.listen((state) {
if (state.processingState == ProcessingState.completed) {
onComplete();
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With