Giter VIP home page Giter VIP logo

airplay-server's Issues

errors with the mdsn when module is used

I did the test with the api followed:

var server = require('airplay-server')("my pc airplay");

server.on('request',function(req,res){
console.log("aiplay request",res);
});

server.listen(6000);

but, when the test actived,the errors came followed:
module.js:339
throw err;
^

Error: Cannot find module '../build/Release/dns_sd_bindings'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/home/king/re/node_modules/airplay-mdns- server/node_modules/mdns/lib/dns_sd.js:32:22)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)

what can i do to fix the error?

Nothing happens on 'request´

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 :-)

A little doubt

I don't quite understand the functionality of your project, I run test, and then the computer and IOS device in a local area network. Is it my iOS phone to search to this server?

question: system dependencies

Are there any other system level dependencies than libavahi-compat-libdnssd-dev?

Running the example and not seeing any new airplay devices on the network.

Release on npm

I couldn't find airplay-server on npm. Are you planning on releasing it? :)

[Airplay Mirroring] - Screen mirroring

Hello,

Do we have a sample which depicts or helps us understand airplay screen mirroring ?
Does this reverse engineering need some license from apple ?

Thanks,
Champa

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.