mirror of
https://github.com/samsonjs/media.git
synced 2026-04-01 10:35:48 +00:00
Throw when window uid changes for unexpected reasons
PiperOrigin-RevId: 321553397
This commit is contained in:
parent
ab95e3f388
commit
c0204bfdc4
1 changed files with 2 additions and 1 deletions
|
|
@ -1055,7 +1055,8 @@ import java.util.concurrent.TimeoutException;
|
|||
} else if (timelineChanged) {
|
||||
transitionReason = MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED;
|
||||
} else {
|
||||
transitionReason = MEDIA_ITEM_TRANSITION_REASON_SKIP;
|
||||
// A change in window uid must be justified by one of the reasons above.
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
return new Pair<>(/* isTransitioning */ true, transitionReason);
|
||||
} else if (positionDiscontinuity
|
||||
|
|
|
|||
Loading…
Reference in a new issue