media/demos/session/src/main
bachinger 7938978b51 Allow MediaLibraryService to reject the resumption notification
To reliably reject the System UI playback resumption notification on
all API levels (specifically API 30), the backward compatibility layer
needs to return `null` for the library root.

This is not possible in the Media3 implementation. This change allows
an app to return a `LibraryResult.ofError(RESULT_ERROR_NOT_SUPPORTED)`
that then is translated to return null by the backwards compatibility
layer.

Issue: androidx/media#355
Issue: androidx/media#167
Issue: androidx/media#27

See https://developer.android.com/guide/topics/media/media-controls#mediabrowserservice_implementation

PiperOrigin-RevId: 527276529
2023-04-27 12:23:26 +01:00
..
assets Enable subtitle selection in session demo app 2022-08-08 07:56:20 +00:00
java/androidx/media3/demo/session Allow MediaLibraryService to reject the resumption notification 2023-04-27 12:23:26 +01:00
res Post notification for session app when FgS starting exception is caught 2023-01-17 02:12:03 +00:00
AndroidManifest.xml Switch incorrectly configured native multidex to legacy for demos 2022-09-30 17:05:23 +00:00