Skip to content

Commit

Permalink
Resume from playback position by default when media source changes
Browse files Browse the repository at this point in the history
Issue:#2369

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=145982198
  • Loading branch information
AquilesCanta authored and ojw28 committed Jan 30, 2017
1 parent c49d142 commit 9a90795
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ private void maybeUpdateLoadingPeriod() throws IOException {

long newLoadingPeriodStartPositionUs;
if (loadingPeriodHolder == null) {
newLoadingPeriodStartPositionUs = playbackInfo.startPositionUs;
newLoadingPeriodStartPositionUs = playbackInfo.positionUs;
} else {
int newLoadingWindowIndex = timeline.getPeriod(newLoadingPeriodIndex, period).windowIndex;
if (newLoadingPeriodIndex
Expand Down

0 comments on commit 9a90795

Please sign in to comment.