Inconsistent Cast notification configuration between CastParams and manifest options
Maintainers usually reply within 4 days
@tanay187 is already working on this.
Since Aug 19, 2026.
Assessment
This issue has not been assessed yet.
Description
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
- Use manifest initialized cast options with
setNotificationOptions = nullandsetMediaSessionEnabled = false - Play media in media session demo
- 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 bugreportto [email protected] after filing this issue.
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 998
- Avg merge
- 6d 8h
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from androidx/media
-
HLS: muxed Dolby TrueHD audio is dropped during chunkless preparation when CODECS lists "mlpa"Possibly taken @marcbaechinger claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
androidx/media#3485 · 1 assignee ·
Maintainers usually reply within 4 days
-
MediaSessionService: the platform session keeps every player command and publishes the whole queue until the session is added, e.g. after a sticky restartPossibly taken @marcbaechinger claimed this today. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
androidx/media#3490 · 3 comments · 1 assignee ·
Maintainers usually reply within 4 days
-
Gapless MP4/AAC from FFmpeg: padding derived as 0 from the edit list, so the rest of the last frame plays at each joinPossibly taken @rohitjoins claimed this today. Openbug needs triage
Difficulty 4/5 3-5 days Newbie friendliness 48/100
androidx/media#3489 · 1 assignee ·
Maintainers usually reply within 4 days
-
DTS-HD passthrough never retries a failed AudioTrack since the 1-second retry minimum (#3207)Possibly taken @microkatz claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 57/100
androidx/media#3487 · 1 assignee ·
Maintainers usually reply within 4 days
-
Dolby Vision Profile 7 is sent to a Profile 5 decoder on DV displays without a Profile 7 decoderPossibly taken @microkatz claimed this today. Open
Difficulty 4/5 1-2 days Newbie friendliness 48/100
androidx/media#3486 · 1 assignee ·
Maintainers usually reply within 4 days
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ballerina-platform/static-code-analysis-tool#140 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
atomityhq/blog-cms#82 · 1 comment ·
Maintainers usually reply within 1 day
-
ready-for-triage triaged
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
RedHatInsights/notifications-backend#5080 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
eclipse-4diac/4diac-ide#3103 ·
Maintainers usually reply within 1 day