media/library/common
olly 3147a53c47 Constrain resolved period positions to be within the period
This is a candidate fix for #8906. As mentioned in that issue,
negative positions within windows might be (kind of) valid in
live streaming scenarios, where the window starts at some
non-zero position within the period. However, negative positions
within periods are definitely not valid. Neither are positions
that exceed the period duration.

There was already logic in ExoPlayerImplInternal to prevent a
resolved seek position from exceeding the period duration. This
fix adds the equivalent constraint for the start of the period.
It also moves the application of the constraints into Timeline.
This has the advantage that the constraints are applied as part
of state masking in ExoPlayerImpl.seekTo, removing any UI flicker
where the invalid seek position is temporarily visible.

Issue: #8906
PiperOrigin-RevId: 395917413
2021-09-16 16:14:20 +01:00
..
src Constrain resolved period positions to be within the period 2021-09-16 16:14:20 +01:00
build.gradle Bump dependency versions 2021-06-30 13:53:01 +01:00
proguard-rules.txt Refine ProGuard config workaround for Function 2021-02-03 15:03:07 +00:00
README.md Split out extractor and common modules 2020-01-24 18:15:19 +00:00

ExoPlayer common library module

Common code used by other ExoPlayer modules.

  • Javadoc: Note that this Javadoc is combined with that of other modules.