mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Resume from playback position by default when media source changes
Issue:#2369 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=145982198
This commit is contained in:
parent
c49d142981
commit
9a90795041
1 changed files with 1 additions and 1 deletions
|
|
@ -1215,7 +1215,7 @@ import java.io.IOException;
|
||||||
|
|
||||||
long newLoadingPeriodStartPositionUs;
|
long newLoadingPeriodStartPositionUs;
|
||||||
if (loadingPeriodHolder == null) {
|
if (loadingPeriodHolder == null) {
|
||||||
newLoadingPeriodStartPositionUs = playbackInfo.startPositionUs;
|
newLoadingPeriodStartPositionUs = playbackInfo.positionUs;
|
||||||
} else {
|
} else {
|
||||||
int newLoadingWindowIndex = timeline.getPeriod(newLoadingPeriodIndex, period).windowIndex;
|
int newLoadingWindowIndex = timeline.getPeriod(newLoadingPeriodIndex, period).windowIndex;
|
||||||
if (newLoadingPeriodIndex
|
if (newLoadingPeriodIndex
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue