The data is one of several buffers that input a command, or possible a moving touch. ctrl-int/1/controlpromptentry?prompt-id=114&session-id= Not strictly necessary, as I found that logging in simply gets you a new session id, but probably not a bad idea to do things the way it expects. The last four bytes of the response's is a session id, encoded as a big-endian four byte integer. The only three requests necessary to make are: /login?pairing-guid=&hasFP=1 (This may require removing all of the devices it is already paired with, since that was unfortunately necessary for me to get it to display the 'Add a device' button.) Once I had paired my iPhone to the Apple TV, I recorded some of its requests, copied the pairing GUID, and then constructed some of my own requests. I don't know if the following method will work if Home Sharing is enabled, but with it disabled on the Apple TV, the iOS Remote app has the option to manually add a device. It turns out that you don't need to use Home Sharing to have a remote app control the Apple TV.
I did manage to control my Apple TV (currently running tvOS 9.2) from a python script. iTunes abbinerà la libreria sul computer all’app iTunes Remote sul dispositivo. Hope this helps for getting an overview of how this simple (but protected) app works. Nell’app iTunes sul PC, fai clic sul pulsante Remote vicino all’angolo superiore sinistro della finestra di iTunes, quindi inserisci il codice di 4 cifre.
Some other minor calls are fired in between (like a Bonjour service update or a /databases call). /ctrl-int/1/ seems to be the calls made for the input buttons.Control your Mac over a wireless network. According to Wikipedia, this seems to be like an hash generated by a certificate exchange between verified sources that was introduced in iTunes 7.0+ and never reverse engineered. Enter Rowmote Rowmote is like your Mac’s remote control, but over the wireless network and even better By tapping the Apps button, you get bonus abilities, switching between controlled programs, toggling the iTunes Visualizer, and more. This call needs a Client-DAAP-Validation header with a long unknown string value. home-share-verify validates the connection between the app and the Apple TV. It responds with a DAAP about the login status. /login is performed during connection, when the app displays the "Connecting to Apple TV." message.
It responds with a Apple proprietary DAAP response (Digital Audio Access Protocol) providing some tags about the device, like the display name.