Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Inconsistent Cast notification configuration between CastParams and manifest options

Aperta
#3,378 2 commenti 0 reazioni 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

@tanay187 ci sta già lavorando.

Dal 19/8/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug cast needs triage
Version

Media3 1.11.0

More version details

Cast Params were introduced in version 1.11.0 and now the documentation recommends them over the old manifest-provided cast options. However, they seem to behave differently.

When using CastParams, we can't disable the Cast session notification, so we're forced to use the old method.

https://github.com/user-attachments/assets/9fbd79e0-34e8-4a51-afca-40739c1dc0d7

For some reason the old method just doesn't work as per documentation. Both the Cast SDk documentation and media3's docs mention to use setNotificationOptions(null) with setMediaSessionEnabled(false) to get rid of the notification, but it only worked for me when I passed an empty builder instead of null.

https://github.com/user-attachments/assets/f8cd3c63-dd11-4669-bd8c-eff98661d645

https://github.com/user-attachments/assets/1c440845-d3e8-472c-a1ed-cc1c1a704a47

Devices that reproduce the issue

Samsung S25+ (Api 36.1)

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps
  1. Use manifest initialized cast options with setNotificationOptions = null and setMediaSessionEnabled = false
  2. Play media in media session demo
  3. Connect to Cast
Expected result

No cast session notification, only app session notification

Actual result

Cast session notification is shown

Media

Album Folder -> Wake Up -> Play

Bug Report
  • You will email the zip file produced by adb bugreport to [email protected] after filing this issue.
Lingua principale
Java
Stelle
3.1k
Fork
998
Merge medio
6g 8h
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di androidx/media

Tutte le issue di androidx/media

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.