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

Add multiple devices #44

Open
FrancisHGR opened this issue Nov 13, 2017 · 1 comment
Open

Add multiple devices #44

FrancisHGR opened this issue Nov 13, 2017 · 1 comment

Comments

@FrancisHGR
Copy link

Hey everyone,

great code - but how do I add different speaker / devices?

Thanks and cheers

@FrancisHGR FrancisHGR changed the title Add multiple devies Add multiple devices Nov 13, 2017
@FrancisHGR
Copy link
Author

FrancisHGR commented Nov 24, 2017

Did it, so if someone is interested. Just ignore the required parameters via optimist and add the devices directly in the file, e.g. play_stdin.js in /examples

host = '192.168.1.11';
var device = airtunes.add(host, {
port: 5000
volume: 100
});

var host2 = '192.168.1.17';
var device = airtunes.add(host2, {
port: 1024
volume: 100
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant