media/libraries
tianyifeng 2a7d85e065 Calculate HLS live playlist refresh interval accurately
Previously, we calculated the next playlist reload time by adding the target duration (or half of it, depending on whether there is a real update in the new playlist snapshot) from the last load completion time, which makes the reload interval as long as `targetDuration(or half of it) + lastLoadDuration`. While still complying to the standard that "the client MUST wait for at least the target duration before attempting to reload the Playlist file again", this could cause buffering when the playback position is close to the end of live window. This change is to calculate the reload interval accurately by not adding the term `lastLoadDuration`.

Issue: androidx/media#663

#minor-release

PiperOrigin-RevId: 573300009
(cherry picked from commit 58a63c82aa)
2023-10-23 13:15:16 +01:00
..
cast Move setAudioAttributes from ExoPlayer to Player 2023-09-19 06:08:37 -07:00
common Split available command filtering and bundling 2023-10-23 13:14:42 +01:00
container Remove duplication of various TestUtil methods 2023-08-31 08:23:33 -07:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Test more URI forms in RawResourceDataSourceContractTest 2023-10-23 13:14:42 +01:00
datasource_cronet Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource_okhttp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Deprecate decode-only flag. 2023-10-06 15:57:25 +01:00
decoder_av1 Add Decoder.setOutputStartTimeUs and use it in extension decoders 2023-10-06 15:57:25 +01:00
decoder_ffmpeg Explicitly mark DecoderOutputBuffer as shouldBeSkipped if needed 2023-10-06 15:57:24 +01:00
decoder_flac Add more data to e2etest dumps 2023-07-13 15:33:33 +01:00
decoder_midi Deprecate decode-only flag. 2023-10-06 15:57:25 +01:00
decoder_opus Explicitly mark DecoderOutputBuffer as shouldBeSkipped if needed 2023-10-06 15:57:24 +01:00
decoder_vp9 Add Decoder.setOutputStartTimeUs and use it in extension decoders 2023-10-06 15:57:25 +01:00
effect Add previewing specific video graph. 2023-09-29 06:16:16 -07:00
exoplayer Remove deprecated DownloadNotificationHelper.buildProgressNotification 2023-10-23 13:15:12 +01:00
exoplayer_dash Add experimental opt-in to parse DASH subtitles during extraction 2023-10-23 13:14:41 +01:00
exoplayer_hls Calculate HLS live playlist refresh interval accurately 2023-10-23 13:15:16 +01:00
exoplayer_ima Bump IMA SDK version to 3.31.0 2023-09-21 05:54:13 -07:00
exoplayer_rtsp Deflake RTSP keep-alive monitor test 2023-10-06 19:20:13 +01:00
exoplayer_smoothstreaming Add functionality to transmit CMCD data using query parameters 2023-08-31 02:11:12 -07:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Migrate SubtitleParser implementations to incremental parse() 2023-10-23 13:14:42 +01:00
muxer Make sure the mdat box is not extended by more than 1 GB at a time. 2023-09-08 04:07:13 -07:00
session Avoid bundling PlayerInfo for in-process calls 2023-10-23 13:14:42 +01:00
test_data Change LegacySubtitleUtil handling of SubtitleParser.OutputOptions 2023-10-23 13:14:42 +01:00
test_exoplayer_playback Add android.namespace to all build.gradle files 2023-05-19 17:19:15 +01:00
test_session_common Add default implementation of Callback.onSubscribe 2023-09-27 12:19:34 -07:00
test_session_current Add MediaSession.Builder().setPeriodicPositionUpdateEnabled() 2023-10-23 13:14:41 +01:00
test_utils Add Dumper support for outputting multiline strings 2023-10-06 15:57:24 +01:00
test_utils_robolectric Enable offload scheduling by default for audio-only offload playback 2023-09-13 06:46:50 -07:00
transformer Add previewing specific video graph. 2023-09-29 06:16:16 -07:00
ui Fix the resumption of playback when suitable device is connected. 2023-10-23 13:13:46 +01:00
ui_leanback Prevent forwarding of zero video size to Leanback 2023-08-30 12:20:51 -07:00