Add functionality to set playlist item by ID
@marcbaechinger is already working on this.
Since Apr 28, 2023.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
For cross-process use cases I am missing a way to seek to a playlist item by ID from the client.
Framework media has TransportControls.skipToQueueItem(long), where the parameter is a long ID. Media3 seems to have nothing that works across process boundaries.
There is Timeline.getIndexOfPeriod(Object), but it does not and cannot work across process boundaries because of the oddly unconstrained Object parameter type.
The only way I see to obtain functionality on par with framework media is implementing a custom SessionCommand myself. (I've simply made it constrain the Object parameter type to something usable and return the result of getIndexOfPeriod() to the client.)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.