media/libraries
tianyifeng a2aaad65a8 Catch FgSStartNotAllowedException when playback resumes
This fix applies to Android 12 and above.

In this fix, the `MediaSessionService` will try to start in the foreground before the session playback resumes, if ForegroundServiceStartNotAllowedException is thrown, then the app can handle the exception with their customized implementation of MediaSessionService.Listener.onForegroundServiceStartNotAllowedException. If no exception thrown, the a media notification corresponding to paused state will be sent as the consequence of successfully starting in the foreground. And when the player actually resumes, another media notification corresponding to playing state will be sent.

PiperOrigin-RevId: 501803930
(cherry picked from commit 0d0cd78626)
2023-01-25 18:18:41 +00:00
..
cast Clarify behavior for out-of-bounds indices and align implementations 2023-01-25 18:17:15 +00:00
common Initialise fields used for bundling as String directly 2023-01-25 18:18:20 +00:00
database Add javadoc links to README files 2023-01-25 18:01:21 +00:00
datasource Add javadoc links to README files 2023-01-25 18:01:21 +00:00
datasource_cronet Add javadoc links to README files 2023-01-25 18:01:21 +00:00
datasource_okhttp Add javadoc links to README files 2023-01-25 18:01:21 +00:00
datasource_rtmp Add javadoc links to README files 2023-01-25 18:01:21 +00:00
decoder Add javadoc links to README files 2023-01-25 18:01:21 +00:00
decoder_av1 Add javadoc links to README files 2023-01-25 18:01:21 +00:00
decoder_ffmpeg Add javadoc links to README files 2023-01-25 18:01:21 +00:00
decoder_flac Add javadoc links to README files 2023-01-25 18:01:21 +00:00
decoder_opus Add javadoc links to README files 2023-01-25 18:01:21 +00:00
decoder_vp9 Add javadoc links to README files 2023-01-25 18:01:21 +00:00
effect Add javadoc links to README files 2023-01-25 18:01:21 +00:00
exoplayer Document that DownloadService needs notification permissions 2023-01-25 18:18:41 +00:00
exoplayer_dash Add javadoc links to README files 2023-01-25 18:01:21 +00:00
exoplayer_hls Add javadoc links to README files 2023-01-25 18:01:21 +00:00
exoplayer_ima Add AdsLoader.focusSkipButton() 2023-01-25 18:18:41 +00:00
exoplayer_rtsp Add javadoc links to README files 2023-01-25 18:01:21 +00:00
exoplayer_smoothstreaming Add javadoc links to README files 2023-01-25 18:01:21 +00:00
exoplayer_workmanager Add javadoc links to README files 2023-01-25 18:01:21 +00:00
extractor Throw a ParserException instead of a NullPointerException if the sample table (stbl) is missing a required sample description (stsd). 2023-01-25 18:17:17 +00:00
session Catch FgSStartNotAllowedException when playback resumes 2023-01-25 18:18:41 +00:00
test_data Merge pull request #10750 from Stronger197:subrip_utf_16 2023-01-25 17:50:39 +00:00
test_exoplayer_playback Fix instrumentation tests not working via Gradle 2022-09-20 15:25:38 +00:00
test_session_common Use onMediaMetadataChanged for updating the legacy session 2023-01-25 18:18:41 +00:00
test_session_current Use onMediaMetadataChanged for updating the legacy session 2023-01-25 18:18:41 +00:00
test_utils Forward seek command details to seekTo method in BasePlayer 2023-01-25 18:17:15 +00:00
test_utils_robolectric Remove debug timeout multiplier. 2023-01-25 18:17:14 +00:00
transformer Add javadoc links to README files 2023-01-25 18:01:21 +00:00
ui Fix order of playback controls in RTL layout 2023-01-25 18:17:16 +00:00
ui_leanback Fix Dackka error due to param name mismatch 2023-01-25 18:17:16 +00:00