Skip to content

Support third-party HAP TVs that advertise PTP (LG 75UP75009LC) - #31

Open
3rd3 wants to merge 4 commits into
omarroth:mainfrom
3rd3:main
Open

Support third-party HAP TVs that advertise PTP (LG 75UP75009LC)#31
3rd3 wants to merge 4 commits into
omarroth:mainfrom
3rd3:main

Conversation

@3rd3

@3rd3 3rd3 commented Aug 13, 2026

Copy link
Copy Markdown

Summary

Pairing and video SETUP failed on an LG webOS AirPlay receiver (AirTunes/377.25.06, features=0x38bcb46007f8ad0). Pair-verify succeeded; audio SETUP waited ~20s and returned 400. After using PTP, video worked but audio was silent.

The TV is classified as third-party (not modern Apple), so we used NTP + a combined audio SETUP. It advertises PTPInfo and never sends an NTP probe (same as iPhone/Mac on that LAN). After PTP, audio was still sent in the clear because there is no FairPlay SAP; the TV drops that.

Changes

  • Record PTPInfo from /info and select PTP independently of usesModernSessionSetup().
  • Keep legacy SETUP (sourceVersion=280.33, controlPort, no control-only first SETUP).
  • On encrypted pair-verify sessions, put a 32-byte ChaCha shk on the audio stream even when controlPort is still used.
  • If PTP clock headers are missing, log and continue instead of failing SETUP.

Tested

  • LG 75UP75009LC: pairing, video, and audio.
  • go test ./internal/airplay/

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