media/library
tonihei 75238e5e4f Remove duplications from handleSourceInfoRefreshed.
handleSourceInfoRefreshed checks for various conditions which may trigger a
change in position. In all cases, we need to resolve the new position for ads,
and if the corresponding MediaPeriods already exist, perform the seek to the new
position.

This change simplified the code by
 1. Moving all conditions in a single if-else structure which just determines
    the new playback position. This makes it easier to read and to follow.
 2. Doing the subsequent seek and position update in one final step to remove
    duplicated code.

As a side effect, it also improves some edge cases. For example when skipping
an ad to an already prebuffered period, we now properly update the existing
prebuffered period.

PiperOrigin-RevId: 243588014
2019-04-16 15:25:08 +01:00
..
all Upgrade gradle plugin and friends 2019-02-18 15:57:55 +00:00
core Remove duplications from handleSourceInfoRefreshed. 2019-04-16 15:25:08 +01:00
dash Extract factory method for FragmentedMp4Extractor in DefaultHlsExtractorFactory 2019-04-16 15:24:48 +01:00
hls Extract factory method for FragmentedMp4Extractor in DefaultHlsExtractorFactory 2019-04-16 15:24:48 +01:00
smoothstreaming Extract factory method for FragmentedMp4Extractor in DefaultHlsExtractorFactory 2019-04-16 15:24:48 +01:00
ui Improve DownloadNotificationHelper 2019-04-13 01:39:24 +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.