switches pause mechanic for stop on stream
This commit is contained in:
+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