Repository navigation
Conversation
Contributor
|
Claude finished @sztomek's task in 33s —— View job This looks correct. Ignoring Nits
|
sztomek
force-pushed
the
fix/cast-state-player-ignore-stop
branch
from
October 23, 2026 11:59
04ba206 to
5e66ff9
Compare
sztomek
force-pushed
the
fix/cast-state-player-ignore-stop
branch
from
October 23, 2026 11:59
5e66ff9 to
c6e2131
Compare
sztomek
marked this pull request as ready for review
October 23, 2026 14:00
Contributor
|
Claude finished @sztomek's task in 37s —— View job No new code since the last review. The one earlier finding is still open: commit 141261c updated the Nits
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
With the Media3 media session enabled, Cast playback paused by itself about 2 seconds after you started casting an episode that was playing on the phone.
Cause: once casting starts, Android's System UI sees two media sessions from the app (the local Media3 session and the Cast session). It hides the local one and sends it a
stop. While casting, the local session wrapsCastStatePlayer, whose stop callback calledpauseSuspend, so the receiver paused. The samestopalso arrives about 0.4 s after every manual pause while casting, which logged a secondplayback_pauseevent.The legacy media session already ignores
stopwhile casting (#3394), and so does the Media3 forwarding player. This makesCastStatePlayer's stop callback do the same: it only writes a debug log line. Stopping a Cast session still goes through the Cast dialog and the Cast notification, and play/pause/media keys are unchanged.Release builds with the
media3_sessionflag off are not affected.Testing Instructions
Use a debug build (Media3 session on) and a Cast receiver.
mainit often pauses after about 2 seconds.playback_pauseevent is logged.Screenshots or Screencast
No screencap, change is behavioral
Checklist
./gradlew spotlessApplyto automatically apply formatting/linting)modules/services/localization/src/main/res/values/strings.xmlI have tested any UI changes...