airsonos
airsonos copied to clipboard
Crashes when selecting device from system preferenced
Using Node V6.3.0
Crashing when selecting the Sonos speaker from system preferences on mac with the following error: `crypto.js:238 this._handle.initiv(cipher, toBuf(key), toBuf(iv)); ^
Error: Invalid key length
at Error (native)
at new Decipheriv (crypto.js:238:16)
at Object.Decipheriv (crypto.js:235:12)
at Object.decryptAudioData (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/helper.js:141:25)
at RtpServer.
Same issue here.
`crypto.js:241 this._handle.initiv(cipher, toBuf(key), toBuf(iv)); ^
Error: Invalid key length
at new Decipheriv (crypto.js:241:16)
at Object.Decipheriv (crypto.js:238:12)
at Object.decryptAudioData (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/helper.js:141:25)
at RtpServer.
Edit: Same thing happens when I try to Airplay from my phone.
@alexwileyy the following fixed my issue: https://github.com/stephen/airsonos/issues/316#issuecomment-255663049