You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, i have setup my server and trying to connect from iOS 11.3, but so far nothing is being called in the onRequest function or listener. Am i missing something?
Currently my iPhone fails to connect and shows an error, but shows up as connected after a while, even though nothing happens in the terminal.
'use strict'
var airplay = require('airplay-server')
var port = 7000
var server = airplay({ name: 'my-airplay', txt: {
deviceid: 'xxx'
features: 0x5A7FFFF7,
flags:0x44,
model: 'AppleTV3,2',
pk:'xxx',
pi:'xxx',
srcvers: '220.68',
vv: 2
}}/*, function (req, res) {
// onRequest
console.log(req.method, req.url)
console.log(req.headers)
}*/)
server.on('request', function (req, res) {
console.log(req.method, req.url)
console.log(req.headers)
})
server.on('listening', function () {
// stuff
})
server.listen(port, function () {
console.log('AirPlay server is listening on port %d', server.address().port)
})
Fair warning, i am not a JS dev though.
Thanks :-)
The text was updated successfully, but these errors were encountered:
Maybe @watson can shed some light? For me the problem is that my iphone doesnt even list the server running from my laptop (both running on the same network) but I fear this project is just completely abandoned
Hey, i have setup my server and trying to connect from iOS 11.3, but so far nothing is being called in the onRequest function or listener. Am i missing something?
Currently my iPhone fails to connect and shows an error, but shows up as connected after a while, even though nothing happens in the terminal.
Fair warning, i am not a JS dev though.
Thanks :-)
The text was updated successfully, but these errors were encountered: