Set buffering to false on dispose

This commit is contained in:
Ryan Heise 2020-02-05 22:47:10 +11:00
parent ae2b6102bc
commit f5b3ce92bc
2 changed files with 2 additions and 1 deletions

View File

@ -323,6 +323,7 @@ public class AudioPlayer implements MethodCallHandler, Player.EventListener {
public void dispose() { public void dispose() {
player.release(); player.release();
buffering = false;
transition(PlaybackState.none); transition(PlaybackState.none);
} }

View File

@ -323,7 +323,7 @@
- (void)dispose { - (void)dispose {
if (_state != none) { if (_state != none) {
[self stop]; [self stop];
[self setPlaybackState:none]; [self setPlaybackBufferingState:none buffering:NO];
} }
} }