media/library
tonihei 5167ca65fb Fix bug where content position of ads in moving live windows is updated
The method to handle Timeline updates currently uses
 isAd() || isPlaceholder()
to trigger two things:
 1. Using the existing requested content position as the content
    position.
 2. Re-resolving the content position from window to period in case
    it changed since the last update.

The condition is correct for case (1) because ads must use the content
position (and not the position in the ad) and a placeholder period must
keep using the requested content position as well until the media
information is no longer a placeholder.

However, case (2) only needs to be done if the content position is
C.TIME_UNSET (to start at the default position) OR if the period is
still a placeholder and we want to re-resolve the position.

The case where re-resolution shouldn't be done is for ads with a non-
placeholder period and a concrete content position. This likely only
affects ads in live stream where the content position is currently
moving with the live stream instead of staying where it is.

PiperOrigin-RevId: 372929439
2021-05-10 23:40:47 +01:00
..
all Add Transformer "Getting started" page 2021-02-03 15:03:16 +00:00
common Remove reference to deprecated Player.EventListener. 2021-05-10 23:40:26 +01:00
core Fix bug where content position of ads in moving live windows is updated 2021-05-10 23:40:47 +01:00
dash Format Java source files 2021-05-06 13:32:25 +01:00
extractor Format Java source files 2021-05-06 13:32:25 +01:00
hls Format Java source files 2021-05-06 13:32:25 +01:00
rtsp Clean up RtspMediaSource.Factory 2021-05-10 23:39:45 +01:00
smoothstreaming Format Java source files 2021-05-06 13:32:25 +01:00
transformer Format Java source files 2021-05-06 13:32:25 +01:00
ui Format Java source files 2021-05-06 13:32:25 +01:00
README.md Tweak and add READMEs + remove refs to V1 2017-08-17 22:59:34 +01:00

ExoPlayer library

The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.