media/libraries/exoplayer/src
rohks de0e08397e Add caching status APIs to MediaExtractorCompat
Implemented `getCachedDuration()` to provide an estimate of cached data in memory and `hasCacheReachedEndOfStream()` to indicate if the cache has reached the end of the stream.

Note: The Javadoc for the newly added methods closely follows that of the platform `MediaExtractor`. While the current implementation always uses a cache and therefore never returns `-1` from `getCachedDuration`, this leaves room for future changes should caching behavior or conditions evolve.
PiperOrigin-RevId: 695694460
2024-11-12 05:34:42 -08:00
..
androidTest Add caching status APIs to MediaExtractorCompat 2024-11-12 05:34:42 -08:00
main Add caching status APIs to MediaExtractorCompat 2024-11-12 05:34:42 -08:00
test Fix error where non-enabled renderers were set to final 2024-11-11 04:35:25 -08:00