-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PlayerControlView: Continue progress updates when not visible #7333
Comments
There is currently no way to do that I'm afraid. I mark this as an enhancement, but I can't say when we have time to look into this and provide a solution. If we find an easy way it's probably soon, but at a first look it seems like it needs some refactoring of the |
Hi any alternative ways to do this ? |
I think an alternative would be to create your own update action that you start when Hope this helps. If this is not sufficient, please give me bit of a more detail of your use case. |
@marcbaechinger Thanks for that ! I found another alternative. I wrapped the PlayerControlView inside a LinearLayout and hide the visibility of the LinearLayout instead of the PlayerControlView . |
[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!
The text was updated successfully, but these errors were encountered: