-
Notifications
You must be signed in to change notification settings - Fork 547
notify ShuffleOrder when media item(s) are moved #2226
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
Conversation
@rohitjoins @icbaker any chance one of you could take a look? |
@marcbaechinger ping since it has been a month, any chance you could take a look at this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR
libraries/exoplayer/src/main/java/androidx/media3/exoplayer/source/ShuffleOrder.java
Show resolved
Hide resolved
I'm going to send this for internal review now. You may see some more commits being added as I make changes in response to review feedback. Please refrain from pushing any more substantive changes as it will complicate the internal review - thanks! |
Ok, I think I've wrapped my head around what this does. Sorry for the wait and for me being slow. Currently, when items in the playlist are moved, the shuffle order is kept the same. With your change
Yeah, acknowledged adding
I agree with this, but my conclusion would be that the default implementation is a no-op? This would have the advantage that we do not introduce a behavior change to what This would still be useful for your use case as I understand you have your own implementation of I guess I'm going to change that accordingly unless you have some strong argument to inverse that procedure.
|
2868055
to
82b0bb5
Compare
Sounds good to me, thanks :) |
Thanks, Marc :) |
Issue: #1932
Issue: #1381
--
(Extracting a seperate method
moveMediaSourceHolders
was done to align with insert/remove code. A newdefault
method instead of just implementing that inDefaultShuffleOrder
was done because I believe the move detection is not required by simpler shuffle order implementations, and this makes upgrades easier as devs don't have to implement a new function.)