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
I am developing a radio app using media3. The app has a MediaLibraryService for playback and a Fragment that controls the UI. The Fragment listens to playback changes using a Player.Listener that has been added to a MediaController. That all works great so far.
I recently began integrating Google Cast into the app. Playback through a CastPlayer in the MediaLibraryService works fine. But now I am stuck: How do I receive information about CastPlayer playback state changes in my Fragment? The existing Player.Listener (basically created in the way recommended here) does not get called at the moment.
The text was updated successfully, but these errors were encountered:
I just found the media3 branch of UAMP. My issue was a buggy function that handled swapping between CastPlayer and ExoPlayer. As soon as I adapted ReplaceableForwardingPlayer for my needs, my problem was more or less solved.
I am developing a radio app using media3. The app has a
MediaLibraryService
for playback and aFragment
that controls the UI. The Fragment listens to playback changes using aPlayer.Listener
that has been added to aMediaController
. That all works great so far.I recently began integrating Google Cast into the app. Playback through a
CastPlayer
in the MediaLibraryService works fine. But now I am stuck: How do I receive information about CastPlayer playback state changes in my Fragment? The existing Player.Listener (basically created in the way recommended here) does not get called at the moment.The text was updated successfully, but these errors were encountered: