media3/demos/session_service
bachinger efff1ee2f1 Add SessionError and use it in service results
This change adds `SessionError` and uses it in `SessionResult`
and `LibraryResult` to report errors to callers.

Constructors and factory method that used a simple `errorCode` to
construct error variants of `SessionResult` and `LibraryResult`
have been overloaded with a variant that uses a `SessionError`
instead. While these methods and constructors are supposed to be
deprecated, they aren't yet deprecated until the newly added
alternative is stabilized.

PiperOrigin-RevId: 642254336
2024-06-11 06:53:42 -07:00
..
2024-05-07 04:20:55 -07:00

Demo MediaLibraryService implementation

A library module with a demo implementation of MediaLibraryService and MediaLibrarySession.Callback.

See the PlaybackService of the session demo how to use it. Override assets/cataglog.json by creating such a file in the same format in your application module that the service will use.