media/libraries
bachinger 24ca6828eb Do not select unprepared media period in getMediaPeriodForEvent
There is a race with the ad period preparation having completed
and `onDownstreamFormatChanged` being called when a live stream
is joined in an ad period. In this case the stream event metadata
of the period is immediately emitted and causing an ad media period
being created that is selected in `getMediaPeriodForEvent` before
being prepared (1 out of 4).

Using an `isPrepared` flag makes sure we don't hand out the media
period to early in `getMediaPeriodForEvent`.

PiperOrigin-RevId: 522340046
2023-04-11 10:32:20 +01:00
..
cast Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
common Read H265 profile info from CSD-0 data 2023-04-11 10:31:16 +01:00
database Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
datasource Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
datasource_cronet Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
datasource_okhttp Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
datasource_rtmp Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
decoder Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
decoder_av1 Remove Javadoc TODO from README of decoder extensions 2023-04-05 15:48:58 +01:00
decoder_ffmpeg Remove Javadoc TODO from README of decoder extensions 2023-04-05 15:48:58 +01:00
decoder_flac Remove Javadoc TODO from README of decoder extensions 2023-04-05 15:48:58 +01:00
decoder_opus Remove Javadoc TODO from README of decoder extensions 2023-04-05 15:48:58 +01:00
decoder_vp9 Remove Javadoc TODO from README of decoder extensions 2023-04-05 15:48:58 +01:00
effect Change output color transfers when rendering Frame To Debug Surface 2023-04-05 12:00:06 +01:00
exoplayer Do not select unprepared media period in getMediaPeriodForEvent 2023-04-11 10:32:20 +01:00
exoplayer_dash Remove mediaTimeOffsetMs from EventDispatcher 2023-04-05 15:34:35 +01:00
exoplayer_hls Remove mediaTimeOffsetMs from EventDispatcher 2023-04-05 15:34:35 +01:00
exoplayer_ima Correct ad durations when timeline moves more than a single period 2023-04-11 10:30:27 +01:00
exoplayer_rtsp Move NAL unit utility classes into common 2023-04-05 15:45:35 +01:00
exoplayer_smoothstreaming Remove mediaTimeOffsetMs from EventDispatcher 2023-04-05 15:34:35 +01:00
exoplayer_workmanager Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
extractor Move NAL unit utility classes into common 2023-04-05 15:45:35 +01:00
session Deprecate MediaMetadata folderType and stabilize mediaType+isBrowsable 2023-04-11 10:28:39 +01:00
test_data Remove edit box functionality from Mp4Muxer 2023-04-05 15:44:04 +01:00
test_exoplayer_playback Fix instrumentation tests not working via Gradle 2022-09-30 18:03:11 +00:00
test_session_common Exclude test_session_{common,current} from API and Javadoc tests 2023-03-07 11:48:38 +00:00
test_session_current Set duration in QueueTimeline 2023-04-05 13:17:58 +01:00
test_utils Make period durations of FakeMultiPeriodLiveTimeline configurable 2023-04-05 15:27:31 +01:00
test_utils_robolectric Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
transformer Use AudioFormat in SilentAudioGenerator. 2023-04-05 15:47:24 +01:00
ui Add media3 guide entries in README files 2023-03-30 17:28:03 +00:00
ui_leanback Fix (another) LeanbackPlayerAdapter param name mismatch 2023-02-01 10:41:50 +00:00