androidx / androidx/media

How to update the metadata for a currentMediaItem with CastPlayer

Open
#1,508 4 comments 2 reactions 1 assignee View on GitHub

@tonihei is already working on this.

Since Jun 28, 2024.

enhancement low priority
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

I am working with an audio streaming app.
I have a ReplaceableForwardingPlayer like in the UAMP project.
The forwardingplayer switches between an ExoPlayer and a CastPlayer.

I need to control and change the metadata for a mediaItem.
With the Exoplayer I can just replaceMediaItem(...) and it updates the metadata seamlessly:
With the CastPlayer this is not the case. It reloads the entire mediaItem.

Is there a way to update the metadata on a CastPlayer?

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.