Search code examples
c++screen-recording

Screen recording on mac using C++


What is the best way to record a user's screen in C++? I have been goggling this topic lately and I can't find any good articles/tutorials.

Is it possible to screen record on mac using C++? If so, how can I do so? Thank you.


Solution

  • You want to use the CGDisplayStream API. Unfortunately, it's not all that well documented, but there are some good samples available on the Apple website and if you search for it on Github.