media icon indicating copy to clipboard operation
media copied to clipboard

setMediaItem does not return a Future

Open Digipom opened this issue 3 years ago • 0 comments

While integrating media3 into a wear app, I ran into some issues with setMediaItem silently failing until I figured out that I can't just send a URI from the controller.

I see the internal code actually routes the error back to the controller via a Future; that Future is just dropped in MediaControllerImplBase instead of being returned up the call stack, and no errors are logged.

As a feature request, setMediaItem and other calls that could fail should return that info to the caller instead of silently dropping it.

See also:

https://github.com/androidx/media/issues/93 https://github.com/androidx/media/issues/43 https://github.com/androidx/media/issues/8

Digipom avatar Jun 29 '22 15:06 Digipom