What do you mean by real-time? Do you want your screen to zoom while you are recording? Or do you mean that you want the zooming to happen automatically?
I want to ideally press a hotkey and have the recording zoom into the area of the screen I'm interacting with the mouse, then hotkey to zoom back out to see the full application.