media/libraries
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
..
cast Add COMMAND_SET_MEDIA_ITEM to Player.Commands 2022-06-09 18:36:35 +00:00
common Add COMMAND_SET_MEDIA_ITEM to Player.Commands 2022-06-09 18:36:35 +00:00
database Mark all non-public IntDefs as only TYPE_USE 2022-02-21 16:56:36 +00:00
datasource Remove InvalidResponseCodeException#headerFields from the stable API 2022-05-26 11:51:27 +00:00
datasource_cronet Add @deprecated javadoc to all @Deprecated @Override methods 2022-05-31 13:51:49 +00:00
datasource_okhttp Workaround for OkHttp Interrupt issues. 2022-05-09 10:59:41 +01:00
datasource_rtmp Remove references to deprecated DefaultDataSourceFactory from dev guide 2022-03-24 15:13:09 +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 Add COMMAND_SET_MEDIA_ITEM to Player.Commands 2022-06-09 18:36:35 +00:00
exoplayer_dash Rollback of e01bb47263 2022-05-23 17:12:22 +01:00
exoplayer_hls Rollback of e01bb47263 2022-05-23 17:12:22 +01:00
exoplayer_ima Simplify DefaultMediaSourceFactory instantiation in a test 2022-05-30 16:32:59 +00:00
exoplayer_rtsp Merge pull request #69 from ittiam-systems:rtp_amr_test 2022-06-09 18:36:35 +00:00
exoplayer_smoothstreaming Rollback of e01bb47263 2022-05-23 17:12:22 +01:00
exoplayer_workmanager Reformat some javadoc 2022-02-18 14:54:02 +00:00
extractor Permit duplicate Opus headers 2022-05-31 14:07:20 +00:00
session Add session URI to Intent used with the notification 2022-06-09 18:36:35 +00:00
test_data Permit duplicate Opus headers 2022-05-31 14:07:20 +00:00
test_exoplayer_playback Move TrackGroupArray back to ExoPlayer 2022-03-17 13:08:56 +00:00
test_session_common Implement session extras for Media3 and legacy controllers 2022-05-30 16:52:43 +00:00
test_session_current Add COMMAND_SET_MEDIA_ITEM to Player.Commands 2022-06-09 18:36:35 +00:00
test_utils Rename DefaultTrackSelector.ParametersBuilder to Parameters.Builder 2022-06-07 17:54:55 +00:00
test_utils_robolectric Migrate leaf listeners of Player to new onCues override 2022-05-24 11:02:03 +01:00
transformer Skip BitrateAnalysisTest if device is incapable. 2022-05-30 16:51:51 +00:00
ui Migrate leaf listeners of Player to new onCues override 2022-05-24 11:02:03 +01:00
ui_leanback Fixes for some minor misc issues 2021-11-19 14:44:25 +00:00