switches pause mechanic for stop on stream

This commit is contained in:
2026-04-29 03:53:35 +00:00
parent 38f4769d2d
commit 966ce5ca28
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ class _MainPageState extends State<MainPage> {
}
Future<void> _stop() async {
await _audio.pause();
await _audio.stop();
}
@override
+2 -2
View File
@@ -45,8 +45,8 @@ class StreamingAudioBusinessObject extends ChangeNotifier {
await _player.play();
}
Future<void> pause() async {
await _player.pause();
Future<void> stop() async {
await _player.stop();
}
@override