Help needed trying to find out

OP needs a switch there, not an amp, makes sense, but my concern is how is the IR supposed to trigger this. Is there supposed to be a code received or is it supposed to switch on with every pulse of IR received?