media/libraries
bachinger 3406334ee8 Allow MediaLibraryService to reject the resumption notification
To reliably reject the System UI playback resumption notification on
all API levels (specifically API 30), the backward compatibility layer
needs to return `null` for the library root.

This is not possible in the Media3 implementation. This change allows
an app to return a `LibraryResult.ofError(RESULT_ERROR_NOT_SUPPORTED)`
that then is translated to return null by the backwards compatibility
layer.

Issue: androidx/media#355
Issue: androidx/media#167
Issue: androidx/media#27

See https://developer.android.com/guide/topics/media/media-controls#mediabrowserservice_implementation

PiperOrigin-RevId: 527276529
(cherry picked from commit 7938978b51)
2023-05-15 16:27:46 +01:00
..
cast Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
common Use @link instead of @value 2023-04-18 15:18:39 +01:00
database Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
datasource Remove remaining references to exoplayer.dev 2023-04-18 14:56:45 +01:00
datasource_cronet Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
datasource_okhttp Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
datasource_rtmp Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
decoder Render last frame even if have not read BUFFER_FLAG_END_OF_STREAM 2023-05-15 16:10:51 +01:00
decoder_av1 Remove Javadoc TODO from README of decoder extensions 2023-04-18 14:56:46 +01:00
decoder_ffmpeg Remove Javadoc TODO from README of decoder extensions 2023-04-18 14:56:46 +01:00
decoder_flac Remove Javadoc TODO from README of decoder extensions 2023-04-18 14:56:46 +01:00
decoder_opus Remove Javadoc TODO from README of decoder extensions 2023-04-18 14:56:46 +01:00
decoder_vp9 Remove Javadoc TODO from README of decoder extensions 2023-04-18 14:56:46 +01:00
effect Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
exoplayer Merge pull request #313 from pengbins:fix_ts_h265reader_parse_sps 2023-05-15 16:26:20 +01:00
exoplayer_dash Ensure DrmSessionManager.setPlayer() is called before prepare() 2023-05-15 16:14:45 +01:00
exoplayer_hls Ensure DrmSessionManager.setPlayer() is called before prepare() 2023-05-15 16:14:45 +01:00
exoplayer_ima Use @link instead of @value 2023-04-18 15:18:39 +01:00
exoplayer_rtsp Retry RTSP Setup with TCP if response with UDP is UnsupportedTransport 2023-04-18 14:55:46 +01:00
exoplayer_smoothstreaming Ensure DrmSessionManager.setPlayer() is called before prepare() 2023-05-15 16:14:45 +01:00
exoplayer_workmanager Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
extractor Merge pull request #313 from pengbins:fix_ts_h265reader_parse_sps 2023-05-15 16:26:20 +01:00
session Allow MediaLibraryService to reject the resumption notification 2023-05-15 16:27:46 +01:00
test_data Merge pull request #313 from pengbins:fix_ts_h265reader_parse_sps 2023-05-15 16:26:20 +01:00
test_exoplayer_playback Fix instrumentation tests not working via Gradle 2022-09-20 15:25:38 +00:00
test_session_common Update available commands when setting a new player in MediaSession 2023-04-18 15:00:09 +01:00
test_session_current Update available commands when MediaSessionCompat actions change 2023-05-15 16:14:40 +01:00
test_utils Ensure DrmSessionManager.setPlayer() is called before prepare() 2023-05-15 16:14:45 +01:00
test_utils_robolectric Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
transformer Add media3 guide entries in README files 2023-03-31 13:36:24 +01:00
ui Add media3 guide entries in README files 2023-03-31 13:36:24 +01:00
ui_leanback Fix (another) LeanbackPlayerAdapter param name mismatch 2023-02-02 13:22:39 +00:00