media/libraries
tonihei 561b83e282 Delay unbinding the controller until pending commands are handled.
Once a controller bound to a MediaSessionService unbinds, this service
may be destroyed immediately if this was the last bound controller and
the service isn't started in the foreground.

At the time of releasing the controller, there may still be pending
commands that need to be handled by the session service. These commands
may cause the session service to post a foreground notification to
keep it alive. So to avoid the destruction of the service while these
commands are still handled, we need to keep the controller bound.

We also add a timeout in case the session tasks are never completed
by the session implementation. In case the controller is destroyed,
the unbinding happens automatically by the system.

PiperOrigin-RevId: 463802220
(cherry picked from commit ac42b593cc)
2022-07-28 11:10:36 +00:00
..
cast Add timestamp to CueGroup 2022-06-22 17:19:55 +01:00
common Exclude Metadata from Format when bundling from TrackGroup 2022-07-25 12:29:44 +00:00
database Mark all non-public IntDefs as only TYPE_USE 2022-02-21 16:56:36 +00:00
datasource Annotate methods that always return this with @CanIgnoreReturnValue 2022-07-21 15:24:07 +00:00
datasource_cronet Annotate methods that always return this with @CanIgnoreReturnValue 2022-07-21 15:24:07 +00:00
datasource_okhttp Annotate methods that always return this with @CanIgnoreReturnValue 2022-07-21 15:24:07 +00:00
datasource_rtmp Annotate methods that always return this with @CanIgnoreReturnValue 2022-07-21 15:24:07 +00:00
decoder Expect PresentationTime Discontinuity During Stream Transitions 2022-04-26 14:21:36 +01:00
decoder_av1 Make sure native library loads use correct class loader 2022-02-22 11:25:44 +00:00
decoder_ffmpeg Remove FfmpegVideoRenderer from 2.18.0 release 2022-05-30 17:58:14 +00:00
decoder_flac Make sure native library loads use correct class loader 2022-02-22 11:25:44 +00:00
decoder_opus Ignore decoding test cases when library not available 2022-05-31 15:33:33 +00:00
decoder_vp9 Make sure native library loads use correct class loader 2022-02-22 11:25:44 +00:00
exoplayer Merge pull request #126 from stoyicker:cap_concurrent_remove_tasks 2022-08-08 08:18:45 +00:00
exoplayer_dash DASH: Parse and use EventStream.presentationTimeOffset 2022-07-25 20:28:20 +00:00
exoplayer_hls Annotate methods that always return this with @CanIgnoreReturnValue 2022-07-21 15:24:07 +00:00
exoplayer_ima Annotate methods that always return this with @CanIgnoreReturnValue 2022-07-21 15:24:07 +00:00
exoplayer_rtsp Merge pull request #119 from ittiam-systems:rtp_h263_test_and_fix 2022-08-08 08:01:44 +00:00
exoplayer_smoothstreaming Annotate methods that always return this with @CanIgnoreReturnValue 2022-07-21 15:24:07 +00:00
exoplayer_workmanager Reformat some javadoc 2022-02-18 14:54:02 +00:00
extractor Annotate methods that always return this with @CanIgnoreReturnValue 2022-07-21 15:24:07 +00:00
session Delay unbinding the controller until pending commands are handled. 2022-07-28 11:10:36 +00:00
test_data Add seeking to arbitrary time points 2022-07-26 14:12:07 +00:00
test_exoplayer_playback Annotate methods that always return this with @CanIgnoreReturnValue 2022-07-21 15:24:07 +00:00
test_session_common Run MediaSessionStub commands in order 2022-07-20 10:34:22 +00:00
test_session_current Delay unbinding the controller until pending commands are handled. 2022-07-28 11:10:36 +00:00
test_utils ExtractorAsserts: add comments on method arguments 2022-07-26 13:23:36 +00:00
test_utils_robolectric Add timestamp to Metadata 2022-06-27 11:31:10 +00:00
transformer Generalize frame processing error codes. 2022-07-27 23:21:31 +00:00
ui Use the current overrides of the player as preset 2022-07-18 10:36:01 +00:00
ui_leanback Listen to playWhenReady changes in LeanbackPlayerAdapter 2022-07-11 15:49:33 +00:00