Joint controller question

I've been looking for a way to dynamicly change certain joints rotation and position to give the give the effect of watching something.  Only problem is i don't see how i could do this unless i go into the source and make a method so i can get the frame or "time" of the current animation.  Then i'd change the frame ahead of it.  This leads to a lag so i'm stumped.  Any ideas?