media/libraries
tonihei e76925c6fc 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
2022-01-05 10:27:32 +00:00
..
cast Upgrade Cast dependency for Android 12 compatibility 2021-12-07 16:46:40 +00:00
common Bump Guava version to 31.0.1 2022-01-05 09:59:41 +00:00
database Update to androidx.media3 2021-10-27 09:12:46 +01:00
datasource Change DefaultHttpDataSourceTest to an instrumentation test 2022-01-05 10:00:46 +00:00
datasource_cronet Update dependency versions 2021-11-19 14:42:25 +00:00
datasource_okhttp Update to androidx.media3 2021-10-27 09:12:46 +01:00
datasource_rtmp Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder_av1 Update to androidx.media3 2021-10-27 09:12:46 +01:00
decoder_ffmpeg Add a builder to DefaultAudioSink 2021-12-07 17:37:45 +00:00
decoder_flac Add a builder to DefaultAudioSink 2021-12-07 17:37:45 +00:00
decoder_opus Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder_vp9 Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
exoplayer Exclude last chunk when applying fraction for live quality increase 2022-01-05 10:27:32 +00:00
exoplayer_dash Add some correctness checks to min/max live latency values. 2021-12-10 11:22:02 +00:00
exoplayer_hls Merge pull request #9767 from TiVo:p-nearest-sync-track-index-bug 2022-01-05 10:10:14 +00:00
exoplayer_ima Move ImaAdsLoader Player.Listener implementation to internal class 2022-01-05 10:23:23 +00:00
exoplayer_rtsp Merge pull request #9606 from ened:rtsp-socket-factory 2021-12-07 16:43:17 +00:00
exoplayer_smoothstreaming Add optional id to TrackGroup. 2021-12-02 11:56:42 +00:00
exoplayer_workmanager Update to androidx.media3 2021-10-27 09:12:46 +01:00
extractor Merge pull request #9709 from Marksss:release-v2 2021-12-10 11:19:44 +00:00
session Utilize CommandButton for customizing Notification 2022-01-05 10:19:09 +00:00
test_data Add some correctness checks to min/max live latency values. 2021-12-10 11:22:02 +00:00
test_exoplayer_playback Fix how drop-to-keyframe events are recorded in DecoderCounters 2021-12-07 17:37:45 +00:00
test_session_common Migrate media3.session references from Window to MediaItem 2021-11-08 15:13:41 +00:00
test_session_current Shorten log tags to 23 char limit 2021-12-07 17:37:31 +00:00
test_utils Add getMetrics() in MediaCodecAdapter 2022-01-05 10:17:49 +00:00
test_utils_robolectric Migrate usages of Window-based Player methods 2021-11-09 10:07:30 +00:00
transformer Remove ExoPlaybackException dependency from sample pipelines. 2022-01-05 10:26:36 +00:00
ui Move Player(Control)View resource IDs into separate _legacy.xml files 2022-01-05 10:16:51 +00:00
ui_leanback Fixes for some minor misc issues 2021-11-19 14:44:25 +00:00