Skip to content

Commit

Permalink
fix(android): ensure pause is well tken in account after onEnd (#4147)
Browse files Browse the repository at this point in the history
Issue linked to: #2690
This original issue is not reproduced
  • Loading branch information
freeboub authored Sep 6, 2024
1 parent 809a730 commit b2fd8d6
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1261,10 +1261,7 @@ private void setPlayWhenReady(boolean playWhenReady) {
player.setPlayWhenReady(true);
}
} else {
// ensure playback is not ENDED, else it will trigger another ended event
if (player.getPlaybackState() != Player.STATE_ENDED) {
player.setPlayWhenReady(false);
}
player.setPlayWhenReady(false);
}
}

Expand Down

0 comments on commit b2fd8d6

Please sign in to comment.