Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support the PIN code of recent Apple TVs #2

Open
francisco-navarro opened this issue Feb 24, 2018 · 5 comments
Open

support the PIN code of recent Apple TVs #2

francisco-navarro opened this issue Feb 24, 2018 · 5 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@francisco-navarro
Copy link

francisco-navarro commented Feb 24, 2018

When I try to connect, I can't authenticate:

The error is:

Error: Unexpected response from Apple TV: 403
at ClientRequest.<anonymous> (~/airplayer/node_modules/airplay-protocol/index.js:155:43)
    at Object.onceWrapper (events.js:293:19)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:191:7)
    at HTTPParser.parserOnIncomingClient (_http_client.js:522:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
    at Socket.socketOnData (_http_client.js:411:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
@derhuerst
Copy link
Owner

derhuerst commented Feb 24, 2018

As in #1, what is your environment? OS, Node version, dependencies up to date?

edit: Apple TV model and firmware version?

@derhuerst derhuerst added the question Further information is requested label Feb 24, 2018
@francisco-navarro
Copy link
Author

francisco-navarro commented Feb 24, 2018

I find the problem is the authentication with TV OS 10.2
I use node v8.4.0 (npm v5.3.0), and Apple TV4. It needs a PIN to authenticate. I'm working in another solution using this: https://github.com/funtax/AirPlayAuth but after authenticate I cannot play.
I will continue to work with this. I'm sending correct petitions and using this protocol specification: https://nto.github.io/AirPlay.html

@derhuerst derhuerst changed the title 403 Error support the PIN code of recent Apple TVs Feb 26, 2018
@derhuerst derhuerst added enhancement New feature or request help wanted Extra attention is needed and removed question Further information is requested labels Feb 26, 2018
@derhuerst
Copy link
Owner

also related: watson/airplay-protocol#7

@derhuerst
Copy link
Owner

This library can probably be used. https://github.com/edc1591/node-appletv

PRs welcome!

@francisco-navarro
Copy link
Author

I'll investigate, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants