diff --git a/android/src/main/java/com/ryanheise/just_audio/AudioPlayer.java b/android/src/main/java/com/ryanheise/just_audio/AudioPlayer.java index dc7ad1f..581929c 100644 --- a/android/src/main/java/com/ryanheise/just_audio/AudioPlayer.java +++ b/android/src/main/java/com/ryanheise/just_audio/AudioPlayer.java @@ -323,6 +323,7 @@ public class AudioPlayer implements MethodCallHandler, Player.EventListener { public void dispose() { player.release(); + buffering = false; transition(PlaybackState.none); } diff --git a/ios/Classes/AudioPlayer.m b/ios/Classes/AudioPlayer.m index 1c2d2f5..b7caad6 100644 --- a/ios/Classes/AudioPlayer.m +++ b/ios/Classes/AudioPlayer.m @@ -323,7 +323,7 @@ - (void)dispose { if (_state != none) { [self stop]; - [self setPlaybackState:none]; + [self setPlaybackBufferingState:none buffering:NO]; } }