media/library
tonihei 9d463725fb Exclude last chunk when applying fraction for live quality increase
We check the fraction of the available duration we have already
buffered for live streams to see if we can increase the quality.
This fraction compares against the overall available media duration
at the time of the track selection, which by definition can't include
one of the availabe chunks (as this is the one we want to load next).

That means, for example, that for a reasonable live offset of 3 segments
we can at most reach a fraction of 0.66, which is less than our default
threshold of 0.75, meaning we can never switch up.

By subtracting one chunk duration from the available duration, we make
this comparison fair again and allow all live streams (regardless of
live offset) to reach up to 100% buffered data (which is above our
default value of 75%), so that they can increase the quality.

Issue: google/ExoPlayer#9784
PiperOrigin-RevId: 416791033
2021-12-20 12:36:43 +00:00
..
all Add database module 2021-10-26 14:19:43 +01:00
common Revert e148a678ac 2021-12-14 10:29:51 +00:00
core Exclude last chunk when applying fraction for live quality increase 2021-12-20 12:36:43 +00:00
dash Add some correctness checks to min/max live latency values. 2021-12-10 17:25:48 +00:00
database Add database module 2021-10-26 14:19:43 +01:00
datasource Change DefaultHttpDataSourceTest to an instrumentation test 2021-12-14 10:30:35 +00:00
decoder Make package in test manifest consistent 2021-10-29 11:35:26 +01:00
extractor Merge pull request #9709 from Marksss:release-v2 2021-12-10 16:50:34 +00:00
hls Merge pull request #9767 from TiVo:p-nearest-sync-track-index-bug 2021-12-14 16:15:36 +00:00
rtsp Merge pull request #9606 from ened:rtsp-socket-factory 2021-12-06 12:36:42 +00:00
smoothstreaming Add optional id to TrackGroup. 2021-12-02 15:21:33 +00:00
transformer Remove ExoPlaybackException dependency from sample pipelines. 2021-12-20 12:33:13 +00:00
ui Move Player(Control)View resource IDs into separate _legacy.xml files 2021-12-15 12:19:19 +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.