Skip to content

Output switcher appears broken after switching to CastPlayer #1056

Description

@NielsMasdorp

So, I am using media3 version 1.2.1 and have a ForwardingPlayer like the UAMP demo app.

When I start local playback this is my media notification:

photo_2024-01-31_17-09-36

When I use the output switcher in the top right corner of the notification or use the casting button inside my app and switch to a casting device the output switcher breaks and shows "Other device".

photo_2024-01-31_17-09-40

This does not change when I switch back to local playback, so the output switcher remains in a non working state.

I am using the same MediaSession when casting, like UAMP does via setMediaSessionEnabled(false) in the CastOptionsProvider.

What would be the cause of this? For reference, you can find my implementation here: https://github.com/NielsMasdorp/Nederadio-Android/tree/master/app/src/main/java/com/nielsmasdorp/nederadio/playback

Thank you,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions