Expose fine-grained UI element visibility through 'PlayerView.ControllerVisibilityListener'
@icbaker is already working on this.
Since Dec 19, 2022.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Media3 Version
1.0.0-beta03
Devices that reproduce the issue
BOXD6 (TV box) running Android 7.1.2
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
observed in app: ExoAirPlayer v3.x
Expected result
listener receives event notifications without any delay.. immediately after the controller is hidden
Actual result
approx. 3 second delay
When I migrated a project from ExoPlayer to Media3, I needed to change from the old PlayerView to the new PlayerView (aka: StyledPlayerView)
-
initially, the code had called: PlayerView.setControllerVisibilityListener(
PlayerControlView.VisibilityListener)- this listener didn't receive any event notifications (at all)
-
when I updated the code to call: PlayerView.setControllerVisibilityListener(
PlayerView.ControllerVisibilityListener)- this listener does receive all event notifications
- when the visibility of the controller changes:
- from
GONEtoVISIBLE, the listener receives an event notification immediately - from
VISIBLEtoGONE, the listener receives an event notification after a delay (approx. 3 seconds)
- from
Media
N/A
Bug Report
- You will email the zip file produced by
adb bugreportto dev.exoplayer@gmail.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.