Player APIs (BrightScript & Ja...
BrightScript-JavaScript Object...

BSIRTransmitter

3min
this class receives ir events for more information, refer to the object reference manual entry on roirtransmitter object creation a bsirtransmitter object must specify the hardware interface that will output the ir signal bsirtransmitter (in domstring interface) valid hardware interfaces include the following "ir out" the 3 5mm ir input connector (available on xdx30 players) or 3 5mm ir input/output connector (available on xtx43, 4kx42, xdx33, and xdx32 players) "iguana" the iguanaworks http //iguanaworks net/ ir transceiver methods boolean send(in domstring type, in unsigned long code) boolean setsendpolarity(in boolean polarity) void close() shuts down the instance, preventing it from further consuming resources if this method is not called, garbage collection determines when the instance will be destroyed example \<script> var irtransmitter = new bsirtransmitter("ir out"); function ircode1() { console log('############ ircode1'); irtransmitter send("nec", 65284); } function ircode2() { console log('############ ircode2'); irtransmitter send("nec", 65288); } function ircode3() { console log('############ ircode3'); irtransmitter send("nec", 65290); } \</script>