Approaches for recording while playing a video

I want to do an appliction that can record from webcam while playing a video simultaneously. Since I am not so experienced with oF, I’d like to know approaches to achive it. Make two separated apps, work with threads, fork?
Thanks!

kovi