Skip to content

Fix AirPlay session state transitions - #397

Merged
easonxiang merged 1 commit into
weenas:mainfrom
easonxiang:fix/airplay-session-state
Nov 16, 2026
Merged

easonxiang merged 1 commit into
weenas:mainfrom
easonxiang:fix/airplay-session-state

Conversation

@easonxiang

Copy link
Copy Markdown
Contributor

Summary

  • Restore the music screen when AirPlay audio resumes in the same session after an AirPlay video stops.
  • Stop stale AirPlay audio when its session ends during desktop casting, while preserving the desktop image and media state.
  • Keep the current cast visible while a new AirPlay socket is being checked when takeover is disabled, so a rejected sender does not leave the TV on a false Connecting screen.

Verification

  • Reproduced the prior behavior in Sony TV logs: AccessPolicy rejected the iPhone while the desktop session remained active; the premature Connecting state came from the pre-admission socket callback.
  • Built the debug APK and verified both fixes on the Sony TV.
  • git diff --check passed.

@easonxiang
easonxiang merged commit b9c8737 into weenas:main Nov 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant