androidx / androidx/media

Add functionality to set playlist item by ID

Open
#363 5 comments 0 reactions 1 assignee View on GitHub

@marcbaechinger is already working on this.

Since Apr 28, 2023.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.