Skip to content

Commit

Permalink
call setPlayWhenReady in any case
Browse files Browse the repository at this point in the history
ISSUE: #6093
PiperOrigin-RevId: 255471282
  • Loading branch information
marcbaechinger authored and ojw28 committed Jul 9, 2019
1 parent cdf70ed commit d3e7ea8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1066,8 +1066,9 @@ public void onPlay() {
}
} else if (player.getPlaybackState() == Player.STATE_ENDED) {
controlDispatcher.dispatchSeekTo(player, player.getCurrentWindowIndex(), C.TIME_UNSET);
controlDispatcher.dispatchSetPlayWhenReady(player, /* playWhenReady= */ true);
}
controlDispatcher.dispatchSetPlayWhenReady(
Assertions.checkNotNull(player), /* playWhenReady= */ true);
}
}

Expand Down

0 comments on commit d3e7ea8

Please sign in to comment.