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'd say this is working as intended because PlayerControlView updates the state of the buttons according to the actual playback and this includes the whether the play button is enabled or not. You should be able to convince the player view that no play/pause command is supported by doing something like this instead:
I'd say this is working as intended because PlayerControlView updates the state of the buttons according to the actual playback and this includes the whether the play button is enabled or not. You should be able to convince the player view that no play/pause command is supported by doing something like this instead:
Thanks. Play/Pause always being disabled was just to demonstrate. In our actual app, it is disabled only during a phone call. ExoPlayer handles audio focus and it pauses playback automatically. During the call, we would like to disable play/pause button. The default behaviour updatePlayPauseButton breaks this.
Version
Media3 main branch
More version details
main
Devices that reproduce the issue
Emulator
Devices that do not reproduce the issue
N/A
Reproducible in the demo app?
Yes
Reproduction steps
Expected result
Play/Pause button stays disabled as explicitly requested by the app
Actual result
Play/Pause button gets enabled automatically because of this code in
PlayerControlView
.Media
N/A
Bug Report
adb bugreport
to [email protected] after filing this issue.The text was updated successfully, but these errors were encountered: