media/library
olly d90d04190e Allow chunk cancelation only if nothing has been consumed from it.
The mediaChunks.size() > 1 check was supposed to ensure this, and
did roughly the right thing when there was only a single stream
(although it was unnecessarily restrictive in preventing chunk
cancelation for the first chunk, where bytesLoaded != 0 and none
of the samples had been consumed).

Now we have multiple streams the check doesn't do the right thing,
and adding a back-buffer feature will make even more incorrect.
This change switches to checking the condition we actually want
to check directly :).

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=174449398
2017-11-03 14:16:28 +00:00
..
all Tweak and add READMEs + remove refs to V1 2017-08-17 22:59:34 +01:00
core Allow chunk cancelation only if nothing has been consumed from it. 2017-11-03 14:16:28 +00:00
dash Fill manifest drm info with media files' pssh when needed 2017-11-02 16:28:10 +00:00
hls Replace Queue with ArrayDequeue in HlsPlaylistParser 2017-11-02 16:33:46 +00:00
smoothstreaming Pass MediaSource instance through onSourceInfoRefreshed 2017-10-27 16:13:59 +01:00
ui Don't call Drawable.setLayoutDirection pre-API-23 2017-11-02 16:32:29 +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.