media/library
eguven 3fbfe29d27 Modify CacheUtil.cache() for polling counters
Getting active status of caching is needed to display on UI. Instead of a listener interface polling was chosen because of simplicity and better suits to UI refreshing.

CachingCounters.downloadedBytes was updated after whole data is downloaded. Now it's updated for each read into buffer. Buffer length defines how finer these updates are.

CachingCounters.totalBytes is added so UI can display a progress bar.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=160142048
2017-06-26 17:07:56 +01:00
..
all Consolidate version codes in root gradle file 2017-04-18 19:42:27 +01:00
core Modify CacheUtil.cache() for polling counters 2017-06-26 17:07:56 +01:00
dash Move DashMediaSource and SsMediaSource to new SampleQueue methods 2017-06-26 17:07:56 +01:00
hls Fix and move Util.getRemainderDataSpec() to DataSpec.subrange() 2017-06-22 20:13:43 +01:00
smoothstreaming Add support for pattern encryption and default initialization vectors 2017-06-22 20:23:42 +01:00
ui Misc cleanup 2017-06-13 13:35:10 +01:00