serezhka / java-airplay-server

Acts like Apple TV
MIT License
324 stars 46 forks source link

no handler for "/pair-pin-start" #5

Open warren-bank opened 2 years ago

warren-bank commented 2 years ago

Hi. First of all.. this is amazing work!

My test device is:

I compiled and tested a few of the demo servers..

summary:

# request 1
GET /info RTSP/1.0
X-Apple-ProtocolVersion: 1
Content-Type: application/x-apple-binary-plist
CSeq: 0
DACP-ID: xxxxxxxxxx
Active-Remote: xxxxxxxxxx
User-Agent: AirPlay/566.25.21
content-length: 70, 70B

# response 1
RTSP/1.0 200 OK
CSeq: 0
content-length: 689, 689B

# request 2
POST /pair-pin-start RTSP/1.0
CSeq: 1
DACP-ID: xxxxxxxxxx
Active-Remote: xxxxxxxxxx
User-Agent: AirPlay/566.25.21
content-length: 0, 0B

# response 2: none

inspection of code:

final thoughts:

warren-bank commented 2 years ago

this is my first attempt to implement the 3-step pairing handshake..

fduncanh commented 1 year ago

@warren-bank

There is interest in adding pair-pin-start support to UxPlay AirPlay server http://github.com/FDH2/UxPlay

could you share details of which open-source AirPlay2 client app you are using as source? (please post as an issue at the UxPlay github project )

Thanks!

EDIT: probably you refer to https://github.com/warren-bank/Java-AirPlay2-Receiver

EDIT2: OK it is https://github.com/openairplay/AirPlayAuth (I think)

warren-bank commented 1 year ago

@fduncanh

Here are all of my notes on the topic.

fduncanh commented 1 year ago

@warren-bank Thanks!