IR recodring and playback

Hi all,
I am trying to find an example, or other guidance, for using arduino to store and playback commands from various IR remote controls.

Is there a generic way, to store any sequence (supported by the receiver of course), and then play it back?

thanks in advance,

  • Chris

I would've though like this:

look for change (ISR?)
while not timed out loop
if change - recording change and time
end loop

while more records available loop
set output according to recorded state at this record
end loop