From a876b46c330c194f145d4ed08f884cf20382d6d8 Mon Sep 17 00:00:00 2001 From: Virczz Cheng Date: Tue, 7 Nov 2023 13:50:44 +0800 Subject: [PATCH] Fix: Unable to replay when status is stopped --- .../java/software/solid/fluttervlcplayer/FlutterVlcPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter_vlc_player/android/src/main/java/software/solid/fluttervlcplayer/FlutterVlcPlayer.java b/flutter_vlc_player/android/src/main/java/software/solid/fluttervlcplayer/FlutterVlcPlayer.java index cb658754..e4850791 100644 --- a/flutter_vlc_player/android/src/main/java/software/solid/fluttervlcplayer/FlutterVlcPlayer.java +++ b/flutter_vlc_player/android/src/main/java/software/solid/fluttervlcplayer/FlutterVlcPlayer.java @@ -255,7 +255,7 @@ void pause() { } void stop() { - if (mediaPlayer != null && mediaPlayer.isPlaying()) { + if (mediaPlayer != null) { mediaPlayer.stop(); } }