airsonos icon indicating copy to clipboard operation
airsonos copied to clipboard

Play:1 problem

Open lobototoro opened this issue 8 years ago • 4 comments

hi ! And first, congrats for the initiative to hack sonos sound system ;) Well, I've purchased a play:1 and it seems it doesn't return the same length of id or string than the other devices from sonos. I've installed your lib and launch it via airsonoson my mac and it found my device successfully but when I selected it in the system preference sound panel, it gave me this error :

crypto.js:239
  this._handle.initiv(cipher, toBuf(key), toBuf(iv));
               ^

Error: Invalid key length
    at Error (native)
    at new Decipheriv (crypto.js:239:16)
    at Object.Decipheriv (crypto.js:236:12)
    at Object.decryptAudioData (/Users/pablo/.config/yarn/global/node_modules/nodetunes/lib/helper.js:141:25)
    at RtpServer.<anonymous> (/Users/pablo/.config/yarn/global/node_modules/nodetunes/lib/rtp.js:32:23)
    at emitTwo (events.js:106:13)
    at Socket.emit (events.js:191:7)
    at UDP.onMessage (dgram.js:550:8)

I'm with node 6.X.X, with yarn instead of npm under mac os sierra.

lobototoro avatar Nov 26 '16 23:11 lobototoro

same issue here...

akisvolanis avatar Nov 29 '16 09:11 akisvolanis

Yup me too.

`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. (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/rtp.js:32:23) at emitTwo (events.js:106:13) at Socket.emit (events.js:191:7) at UDP.onMessage [as onmessage] (dgram.js:547:8)`

sureshn14 avatar Nov 29 '16 10:11 sureshn14

i guess it has to do with nodetunes issue. More here.

akisvolanis avatar Nov 29 '16 11:11 akisvolanis

Exactly, i solved my problem thanks to your link

jeantristan avatar Dec 04 '16 16:12 jeantristan