google / google/ExoPlayer

PlayerControlView: Continue progress updates when not visible

Open
#7,333 4 comments 0 reactions 1 assignee Claimed by @marcbaechinger View on GitHub
enhancement low priority
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

### [REQUIRED] Searched documentation and issues
I've looked through the source code for PlayerControlView.java. Tried subclassing PlayerControlView to override hide() method and prevent removing the progress callback action but some of the members are private.

### [REQUIRED] Question
Is it possible to not tie video progress updates to control view visibility? I have them decoupled in my UI as I need an always visible progress bar, but I am using the show/hide & timeout functionality for pause and play buttons UX. I would have to set up a separate runnable to poll progress and duration from the Player and tie it to playback state as well, which is messy (and is the suggested workaround on stackoverflow).

Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.