Closed hinzundcode closed 9 years ago
Very nice project ;) I only have a problem with getVolume, the callback gets null instead of the volume, what am I doing wrong?
var player = require('chromecast-player')(); player.attach(function (err, p) { p.getVolume(function (vol) { console.log(vol); }); });
Thanks :) The signature of the the callback is err, vol. So you are actually logging err at the moment.
err, vol
Aaah, okay. Thanks for your quick reply ;)
Very nice project ;) I only have a problem with getVolume, the callback gets null instead of the volume, what am I doing wrong?