media/libraries/session/src/main
bachinger 1c81587398 Use MediaBrowserCompat.rootHints as connections hints
In Media3 there is the useful concept of connection hints that a
client can set when building the session and that are sent to the
service and passed to the `Callback.onConnect()` method when the
browser connects.

These connection hints are then included in the `ControllerInfo`
object that later will be passed to every callback method and the
implementor can then take decisions specific to these connection
hints.

These connection hints are not available in media1. However, when
an app creates a `MediaBrowserCompat` object, the constructor takes
a rootHint object that is sent to
`MediaBrowserServiceCompat.onGetRoot()`.

This change uses the browser rootHints as the connection hints when
creating the `ControllerInfo` for legacy browsers and makes them
available to the `MediaLibrarySession.Callback` domain methods in
the same way as connection hints of a Media3 browser.

PiperOrigin-RevId: 484220748
(cherry picked from commit 21022c77be)
2022-10-27 11:50:03 +00:00
..
aidl/androidx/media3/session Add interface version of MediaControllerStub 2022-07-28 21:45:49 +00:00
java/androidx/media3/session Use MediaBrowserCompat.rootHints as connections hints 2022-10-27 11:50:03 +00:00
res Updating translations 2022-06-15 17:00:36 +00:00
AndroidManifest.xml Update to androidx.media3 2021-10-27 09:12:46 +01:00