Play interrupts previous future.
This commit is contained in:
parent
2c3d38f1ad
commit
a494dabcfb
2 changed files with 5 additions and 5 deletions
|
@ -605,10 +605,9 @@ public class AudioPlayer implements MethodCallHandler, Player.EventListener, Met
|
|||
public void play(Result result) {
|
||||
if (player.getPlayWhenReady()) return;
|
||||
if (playResult != null) {
|
||||
result.success(null);
|
||||
} else {
|
||||
playResult = result;
|
||||
playResult.success(null);
|
||||
}
|
||||
playResult = result;
|
||||
startWatchingBuffer();
|
||||
player.setPlayWhenReady(true);
|
||||
if (processingState == ProcessingState.completed && playResult != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue