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() {
|
||||
player.release();
|
||||
buffering = false;
|
||||
transition(PlaybackState.none);
|
||||
}
|
||||
|
||||
|
|
|
@ -323,7 +323,7 @@
|
|||
- (void)dispose {
|
||||
if (_state != none) {
|
||||
[self stop];
|
||||
[self setPlaybackState:none];
|
||||
[self setPlaybackBufferingState:none buffering:NO];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue