
Demo: http://db.tt/FnVP88Nh
This functionality can be extended to support dynamic game "replays" in your project.
Check it out and see if it interests you.
Rather than recording actual video, it simply re-constructs a scene by grabbing all of the commands that were executed by each character/event on the map.
Note that this simply captures move routes, so it's stuff that occurs on the map.