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 2, 2019
1 parent 244c202 commit ae0aeb0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1089,8 +1089,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 ae0aeb0

Please sign in to comment.