-
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
Using ForwardingPlayer in MusicService #9897
Comments
The Are you sure that the commands arrive through the So probably this makes the forwarding player being called:
|
So I pass ForwardingPlayer by:
After click seek forward on notification, callback I assumed that ExoPlayer.Builder() returns SimpleExoPlayer which is ExoPlayerImpl() and method Before Do now I need to build new ExoPlayer every time I want to change these values? |
No, you don't need to build ExoPlayer each time when you change the increment. But you are right this is confusing and we need at least to document this properly on the Let me explain in more detail: The What you want to achieve probably could look like this in code:
I marked this issue as a documentation candidate. |
Thank you for clear explanation and fast response! |
This makes the delegation model more explicit, and prevents the javadoc compiler from just pulling in the Player javadoc automatically - which can lead to some confusion when some method definitions in Player depend on other methods (e.g. seekForward() is defined in terms of getSeekForwardIncrement()). Issue: google/ExoPlayer#9897 #minor-release PiperOrigin-RevId: 426359004
This makes the delegation model more explicit, and prevents the javadoc compiler from just pulling in the Player javadoc automatically - which can lead to some confusion when some method definitions in Player depend on other methods (e.g. seekForward() is defined in terms of getSeekForwardIncrement()). Issue: #9897 #minor-release PiperOrigin-RevId: 426359004
This makes the delegation model more explicit, and prevents the javadoc compiler from just pulling in the Player javadoc automatically - which can lead to some confusion when some method definitions in Player depend on other methods (e.g. seekForward() is defined in terms of getSeekForwardIncrement()). Issue: #9897 #minor-release PiperOrigin-RevId: 426359004
This makes the delegation model more explicit, and prevents the javadoc compiler from just pulling in the Player javadoc automatically - which can lead to some confusion when some method definitions in Player depend on other methods (e.g. seekForward() is defined in terms of getSeekForwardIncrement()). Issue: google/ExoPlayer#9897 #minor-release PiperOrigin-RevId: 426359004
I'm tried to set new ForwardingPlayer with custom callbacks in my project, but it didn't work. So I tried with UAMP project. It also didn't work.
I swapped code, according to 2.16.0 release notes, in this file: MusicService.kt
with:
No one of callbacks above never fired. I can't find any information about how to use ForwardingExoplayer.
The text was updated successfully, but these errors were encountered: