Description
Describe your question in detail.
I'm developing a podcast app which supports chrome cast and we recently moved to media3. We are using MediaController to handle all playback and doing some UI changes regarding of what player is currently being used (exo/cast). For that we thought using onDeviceInfoChanged()
in Player.Listener
and doing changes according to playbackType would be a way to go, but it didn't seem to work so after some debugging I've noticed that CastPlayer doesn't support getDeviceInfo()
method and always returns DeviceInfo.UNKNOWN
with playbackType DeviceInfo.PLAYBACK_TYPE_LOCAL
.
So my question is will getDeviceInfo()
method ever be supported for CastPlayer and is there any other way to tell where playback is happening (exo/cast) from MediaController?