media/library
olly 775a17c498 Split SampleQueue.advanceTo for advance & seek use cases
This method has two use cases:

1. Seeking. Calls are immediately preceded by a call to rewind(), and
   the returned value isn't important unless it's ADVANCED_FAILED (i.e.
   the caller is only interested in success and failure).
2. Advancing. The return value is important unless it's ADVANCED_FAILED,
   in which case the caller wants to treat it as 0.

This change creates separate methods for each use case. The new seekTo
methods automatically rewind and return a boolean. The updated advanceTo
method returns 0 directly in cases where ADVANCED_FAILED was returned.
Arguments that were always hard-coded to true by callers have also been
removed.

This change is a step toward one possible solution for #6155. How we'll
solve that issue is still up for discussion, but this change seems like
one we should make regardless!

Issue: #6155
PiperOrigin-RevId: 290053743
2020-01-16 20:35:04 +00:00
..
all Use new exoplayer.dev domain everywhere. 2019-04-16 15:25:27 +01:00
core Split SampleQueue.advanceTo for advance & seek use cases 2020-01-16 20:35:04 +00:00
dash Add non-null by default to source.chunk 2020-01-16 13:51:50 +00:00
hls Split SampleQueue.advanceTo for advance & seek use cases 2020-01-16 20:35:04 +00:00
smoothstreaming Suppress rawtypes warning when instantiating generic array 2019-12-11 13:46:39 +00:00
ui Move @MonotonicNonNull annotations to their correct positions 2020-01-16 13:51:09 +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.