<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Hub SDK IR Module not playing]]></title><description><![CDATA[<p dir="auto">I'm trying to get a custom module to play IR. Starting off with a few general headaches from trying;</p>
<ol>
<li>It's pretty weird that you can't access the already stored IR-signals.</li>
<li>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.</li>
<li>I can't get it to play even a Uint32Array thats JUST got recorded. Even though I can see that it got recorded OK.</li>
</ol>
<pre><code>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);
});
</code></pre>
<p dir="auto">Console never writes out any <code>err</code> or <code>played!</code>. No IR is sent from the sender. However, i can tell that <code>signal[0]</code> is the same so it's actually trying to run play for the correct array.</p>
<p dir="auto">There is no new record ongoing, I've even tried to run the <code>stopRecording</code> before <code>.play()</code> without any difference.</p>
<p dir="auto">Any idea of why my <code>.play()</code> won't work?</p>
<p dir="auto">I've also noticed that the console prints <code>Connected: 0</code> when recoding starts and when <code>.play()</code>is called. Related?</p>
]]></description><link>https://community.flic.io/topic/18033/hub-sdk-ir-module-not-playing</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 00:28:09 GMT</lastBuildDate><atom:link href="https://community.flic.io/topic/18033.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Apr 2021 08:23:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hub SDK IR Module not playing on Tue, 20 Apr 2021 11:14:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/57">@Emil</a><br />
Did the record part work all the time, while the playing part failed all the time? Yes.</p>
<p dir="auto">Are you using the 1st hub generation or the 2nd (Hub LR)? 2nd.</p>
<p dir="auto">But my bet is that I might have sent in some bad Array while testing that made the IR-queue never emptying/play never ending? Maybe.</p>
]]></description><link>https://community.flic.io/post/19967</link><guid isPermaLink="true">https://community.flic.io/post/19967</guid><dc:creator><![CDATA[oskaremilsson]]></dc:creator><pubDate>Tue, 20 Apr 2021 11:14:56 GMT</pubDate></item><item><title><![CDATA[Reply to Hub SDK IR Module not playing on Tue, 20 Apr 2021 09:44:23 GMT]]></title><description><![CDATA[<p dir="auto">Did the record part work all the time, while the playing part failed all the time?</p>
<p dir="auto">Are you using the 1st hub generation or the 2nd (Hub LR)?</p>
]]></description><link>https://community.flic.io/post/19966</link><guid isPermaLink="true">https://community.flic.io/post/19966</guid><dc:creator><![CDATA[Emil]]></dc:creator><pubDate>Tue, 20 Apr 2021 09:44:23 GMT</pubDate></item><item><title><![CDATA[Reply to Hub SDK IR Module not playing on Tue, 20 Apr 2021 09:30:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/4162">@oskaremilsson</a> It really seems like I've in my very many attempts to get this to work queued up the IR-queue too much, when it didn't work from the app either I restarted the hub. And now this snippet works.</p>
<p dir="auto">So now the question would be, is there any way of clearing the queue except restarting the hub?</p>
]]></description><link>https://community.flic.io/post/19965</link><guid isPermaLink="true">https://community.flic.io/post/19965</guid><dc:creator><![CDATA[oskaremilsson]]></dc:creator><pubDate>Tue, 20 Apr 2021 09:30:43 GMT</pubDate></item></channel></rss>