media/library
tonihei bc9fb8615e Use correct period-window offset for initial prepare position.
MaskingMediaSource needs to resolve the prepare position set for a MaskingPeriod
while the source was still unprepared to the first actual prepare position.

It currently assumes that the period-window offset and the default position is
zero. This assumption is correct when a PlaceholderTimeline is used, but it
may not be true if the real timeline is already known (e.g. when re-preparing
a live stream after a playback error).

Fix this by using the known timeline at the time of the preparation.
Also:
 - Update a test that should have caught this to use lazy re-preparation.
 - Change the demo app code to use the recommended way to restart playback
   after a BehindLiveWindowException.

Issue: #8675
PiperOrigin-RevId: 361604191
2021-03-12 10:40:15 +00:00
..
all Add Transformer "Getting started" page 2021-02-03 15:03:16 +00:00
common Implement addMediaItems(List) and clearMediaItems() in BasePlayer 2021-03-12 10:39:54 +00:00
core Use correct period-window offset for initial prepare position. 2021-03-12 10:40:15 +00:00
dash Introduce ChunkExtractor.Factory for dependency injection 2021-03-02 17:03:55 +00:00
extractor Revert logic to decide whether meta atom is full 2021-02-12 19:55:47 +00:00
hls Suppress SwitchIntDef warning where it makes sense 2021-02-04 00:24:04 +00:00
smoothstreaming Add common prefix to loader thread names 2021-02-11 12:05:06 +00:00
transformer Move MediaFormatUtil into common 2021-02-12 16:39:28 +00:00
ui Merge pull request #8546 from TadejZupancic:dev-v2 2021-03-02 17:04:56 +00: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.