Set buffering to false on dispose
This commit is contained in:
parent
ae2b6102bc
commit
f5b3ce92bc
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue