switches pause mechanic for stop on stream
This commit is contained in:
1 parent
38f4769d2d
commit
966ce5ca28
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -76,7 +76,7 @@ class _MainPageState extends State<MainPage> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _stop() async {
|
Future<void> _stop() async {
|
||||||
await _audio.pause();
|
await _audio.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -45,8 +45,8 @@ class StreamingAudioBusinessObject extends ChangeNotifier {
|
|||||||
await _player.play();
|
await _player.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> pause() async {
|
Future<void> stop() async {
|
||||||
await _player.pause();
|
await _player.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
Reference in new issue
Block a user