How to capture a video of specified window in Mac OS

Viewed 1831

I have tried to capture a screen video using this sample code How to capture screen activity to a movie file using AV Foundation

It's working fine but I am wondering how can I capture a specified window of some individual app (not screen area specified by CGRect).

I'm asking because Google Hangouts can share specified window even if it isn't visible. Google Hangouts

So, my questions are:

  1. How can I modify the code above to achieve this?
  2. Is it possible to capture few windows at the same time?
1 Answers
Related