media/libraries
tonihei 7cf2fd9486 Postpone AdTagLoader listener deregistration to receive final error
When the AdTagLoader is deactivated because of a player error, the
error callback is already pending on the app's main thread, but not
yet executed. This means the VideoAdPlayerCallback instances
registered in AdTagLoader won't receive this error event if the
Player.Listener is immediately removed from AdTagLoader.

This can be fixed by postponing the deregistration until after
already pending messages have been handled. As this means other
callbacks can be triggered now with player==null, this check needs
to be added to other callbacks to avoid handling stale events.

Issue: androidx/media#1334
PiperOrigin-RevId: 630068222
2024-05-02 08:19:04 -07:00
..
cast Forward presumed no-op seeks to handler methods in (Simple)BasePlayer 2024-04-15 02:38:29 -07:00
common Add Mp4 object type for JPEG 2024-05-01 04:05:42 -07:00
container Add Mp4OrientationData class 2024-03-11 06:45:15 -07:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Add IntDef for priority values 2024-04-29 08:14:20 -07:00
datasource_cronet Fix SocketTimeoutException in CronetDataSource. 2024-04-23 07:21:20 -07:00
datasource_okhttp Use Guava's toByteArray & fromByteArray methods where possible 2024-03-08 03:27:29 -08:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Don't enforce SimpleDecoder skipping for samples before start time 2024-05-01 06:42:36 -07:00
decoder_av1 Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
decoder_ffmpeg Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
decoder_flac Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
decoder_midi MidiExtractor: mark only the first sample as key-frame 2023-11-21 07:39:46 -08:00
decoder_opus Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
decoder_vp9 Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
effect Effect:migrate setEnableColorTransfers to setSdrWorkingColorSpace 2024-04-29 03:26:58 -07:00
exoplayer Always set effects surface and resolution together in MCVR 2024-05-02 08:12:19 -07:00
exoplayer_dash Additional clean-up and formatting 2024-03-25 15:02:31 +00:00
exoplayer_hls Refresh HlsMediaPlaylist with delivery directives when possible 2024-04-29 07:24:35 -07:00
exoplayer_ima Postpone AdTagLoader listener deregistration to receive final error 2024-05-02 08:19:04 -07:00
exoplayer_rtsp Allow empty information attributes in RTSP Session Description 2024-02-20 02:47:40 -08:00
exoplayer_smoothstreaming Removing id from Label and ensuring label/labels consistency in Format.Builder. 2024-03-25 12:00:14 +00:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Parse initialization data from AV1 tracks 2024-05-01 08:23:43 -07:00
muxer Update error message to be more specific 2024-04-30 07:28:35 -07:00
session Add metadata field durationMs 2024-04-25 05:05:42 -07:00
test_data Parse initialization data from AV1 tracks 2024-05-01 08:23:43 -07:00
test_exoplayer_playback Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
test_session_common Remove unnecessary SDK_INT checks 2024-02-13 10:26:19 +00:00
test_session_current Import androidx.media 2024-04-25 01:56:23 -07:00
test_utils Add ExoPlayer.setPriority 2024-04-30 08:49:16 -07:00
test_utils_robolectric Add Dumper.addIfNonDefault methods 2024-04-26 09:00:44 -07:00
transformer Rename Muxer.addMetadata to addMetadataEntry 2024-04-30 06:55:50 -07:00
ui Remove references to LegacyPlayerView 2024-04-09 04:12:42 -07:00
ui_leanback Bump effect and leanback minSdk to 19 2024-01-10 07:22:00 -08:00
lint.xml Update recommended way to suppress @UnstableApi errors in lint.xml 2023-11-15 02:34:40 -08:00