Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Added codec warnings when connecting with iTunes/AirFoil (ALAC) #81

Merged
merged 2 commits into from
Dec 6, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ if (flags.get('version')) {
clientName = 'AirSonos @ ' + name;
});

airplayServer.on('error', function(err) {
if (err.code === 415) {
console.error('Warning!', err.message);
console.error('AirSonos currently does not support codecs used by applications such as iTunes or AirFoil.');
console.error('Progress on this issue: https://github.com/stephen/nodetunes/issues/1');
} else {
console.error('Unknown error:');
console.error(err);
}
})

airplayServer.on('clientConnected', function(audioStream) {

portastic.find({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lame": "1.1.1",
"lodash": "~2.4.1",
"nicercast": "0.0.7",
"nodetunes": "0.1.1",
"nodetunes": "0.1.2",
"portastic": "0.0.1",
"sonos": "0.6.1",
"throttle": "~1.0.3"
Expand Down