media/libraries/exoplayer/src
tianyifeng 72ae454f67 Use buffered duration from start position to control preload progress
`PreloadMediaSource` allows to have a `startPositionUs` passed when `preload` is called, then in `PreloadControl.onContinueLoadingRequested`, it can be more intuitive to see the buffered duration rather than the absolute buffered position as the preload progress. Similar in `DefaultPreloadManager`, we haven't allowed the apps to set a custom start position for individual sources though, once we add this support, using the "duration from the start position" than the absolute position will be less error-prone, otherwise, it can run into a case that the position that the apps set is smaller than the start position.

PiperOrigin-RevId: 674251362
2024-09-13 05:05:39 -07:00
..
androidTest Make StreamVolumeManager take streamType in constructor 2024-09-10 08:05:21 -07:00
main Use buffered duration from start position to control preload progress 2024-09-13 05:05:39 -07:00
test Use buffered duration from start position to control preload progress 2024-09-13 05:05:39 -07:00