-
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
Add callback for volume change #3994
Comments
Hi @eneim, I believe even though |
Hi @botaydotcom , my use case is: I would like to implement custom PlayerControlView with Volume control. The actual volume setting can be set from anywhere out side of the View and the View will reactively update Volume position base on that setting. Another use case is to have consistent Volume value for a playback. Saying I have a database to store User config, I want to save/restore the Volume value as well. I know that having traditional setter/getter should work as well, but this will ask for a code base where DB, UI and Business logic to be on the same layer, which doesn't sound well always. |
Issue: #3994 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=204722997
Implemented in |
I'm on ExoPlayer 2.7.0, this is kind of a feature request (if it is not there yet).
There is volume setting on
SimpleExoPlayer
and lower level, but I could not find a place where a successful or failure Volume update could be 'listened' to. Can this be added to the library, or how can I make it by my own, in a recommended way?Thanks.
The text was updated successfully, but these errors were encountered: