I'm trying to get a custom module to play IR. Starting off with a few general headaches from trying;
- It's pretty weird that you can't access the already stored IR-signals.
- Even if recording specifically for my module theres really no good way of storing it for when the module restarts. Storing Uint32Array as a string is a nightmare.
- I can't get it to play even a Uint32Array thats JUST got recorded. Even though I can see that it got recorded OK.
ir.record();
ir.on("recordComplete", function(signal) {
console.log(signal[0]);
setTimeout(function() {
console.log(signal[0])
ir.play(signal, function(err) {
console.log(err); //never called
console.log("played!"); //never called
});
}, 1000);
});
Console never writes out any err
or played!
. No IR is sent from the sender. However, i can tell that signal[0]
is the same so it's actually trying to run play for the correct array.
There is no new record ongoing, I've even tried to run the stopRecording
before .play()
without any difference.
Any idea of why my .play()
won't work?
I've also noticed that the console prints Connected: 0
when recoding starts and when .play()
is called. Related?