You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typically I would extend MediaSessionCompat.Callback() and put my logic in onMediaButtonEvent.
When I use setPlayer(), the callback is completely removed and an internal callback is put in place, which I cannot (find a way to) modify.
How can I do that or what is an alternative solution to overriding responses to media buttons using exoPlayer?
The text was updated successfully, but these errors were encountered:
Yes, it's right that we need to replace a callback which has already been set. There is no other way.
The current default implementation provided by the framwork just delegates these calls to the appropriate onXYZ actions. This means playback events coming from the headset are delegated and should work.
There is however, no way to intercept such events or distinguish between playback events coming from media buttons or from elswhere in the app.
We need to give that a think to provide proper ways to to that.
Typically I would extend MediaSessionCompat.Callback() and put my logic in onMediaButtonEvent.
When I use setPlayer(), the callback is completely removed and an internal callback is put in place, which I cannot (find a way to) modify.
How can I do that or what is an alternative solution to overriding responses to media buttons using exoPlayer?
The text was updated successfully, but these errors were encountered: