media/libraries
tonihei 8655429af7 Reset loading period after reading discontinuity that requires loading
Reading a discontinuity from a media period indicates that a position
reset is required. As part of this event, the media period may need
further loading (e.g in a MergingMediaPeriod where one stream reported
a discontinuity and the other need to reload from this position).

This currently fails if the media periods was already fully loaded and
we started loading further items in the playlist. As a result, playback
is stuck forever. We can fix this by detecting that further loading is
needed and resetting the loading period to the current one.

The existing MergingPlaylistPlaybackTest already covers this case
reliably, because it combines all the right preconditions (merging
source, clipping to get a discontinuity and a playlist).

PiperOrigin-RevId: 548735177
2023-07-20 10:17:11 +01:00
..
cast Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
common Fix @RequiresApi annotations in GlUtil 2023-07-20 10:12:14 +01:00
container Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Remove unnecessary final on DefaultHttpDataSource.Factory method 2023-06-29 23:09:14 +00: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 Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_av1 Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_ffmpeg Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_flac Add more data to e2etest dumps 2023-07-13 15:33:33 +01:00
decoder_midi Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_opus Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_vp9 Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
effect Compositor: Use timestamps for compositing. 2023-07-20 10:13:28 +01:00
exoplayer Reset loading period after reading discontinuity that requires loading 2023-07-20 10:17:11 +01:00
exoplayer_dash Replace Dummy with Placeholder 2023-07-14 10:17:05 +01:00
exoplayer_hls Add fields streaming format(sf), stream type(st) and version(v) 2023-07-13 15:50:16 +01:00
exoplayer_ima Make MediaItems updateable 2023-07-13 15:26:30 +01:00
exoplayer_rtsp Make MediaItems updateable 2023-07-13 15:26:30 +01:00
exoplayer_smoothstreaming Add tests for DefaultSsChunkSource 2023-07-20 09:55:16 +01:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Add MKV test assets with overlapping SSA and SRT subtitles 2023-07-20 10:14:50 +01:00
muxer Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
session Avoid resetting suppression reason with play/pause on MediaController 2023-07-20 09:57:51 +01:00
test_data Add MKV test assets with overlapping SSA and SRT subtitles 2023-07-20 10:14:50 +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 custom layout to the state of the MediaController 2023-07-13 15:47:50 +01:00
test_session_current Avoid resetting suppression reason with play/pause on MediaController 2023-07-20 09:57:51 +01:00
test_utils Save to TestStorage when saving Bitmap 2023-07-20 10:15:47 +01:00
test_utils_robolectric Set signal on renderer once it's allowed to render start of stream 2023-07-13 15:59:00 +01:00
transformer Compositor: Use timestamps to release frames. 2023-07-20 10:04:55 +01:00
ui Fix dependencies for UI module 2023-07-14 10:24:15 +01:00
ui_leanback Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00