media/libraries/session/src/main
bachinger 7c0b787bdb Add session URI to Intent used with the notification
The service handles three different types of `Intents`. Custom command and media
command Intents created by the library and media button event Intents from other
sources.

Media commands from the library as well as from external sources have the action
set to `android.intent.action.MEDIA_BUTTON`. If the data URI is set and can be
used to identify a session then it is a library Intent. If the Intent is coming
from an external KeyEvent, the service implementation is asked which session to use
by calling `onGetSession(controllerInfo)` with the controller info being an
anonymous legacy controller info.

Intents representing a custom command are always coming from the library and hence
always have a data URI.

Issue: androidx/media#82
PiperOrigin-RevId: 453932972
(cherry picked from commit 8b592fc77a)
2022-06-09 18:36:35 +00:00
..
aidl/androidx/media3/session Implement session extras for Media3 and legacy controllers 2022-05-30 16:52:43 +00:00
java/androidx/media3/session Add session URI to Intent used with the notification 2022-06-09 18:36:35 +00:00
res Update error state of legacy playback state if authentication fails 2022-04-06 11:25:27 +01:00
AndroidManifest.xml Update to androidx.media3 2021-10-27 09:12:46 +01:00