[feat] support new screen capture method by using ScreenCaptureKit on MacOSX

This commit is contained in:
dijunkun
2024-10-18 17:20:52 +08:00
parent 9ed3ab9929
commit b5bb62bd22
11 changed files with 542 additions and 11 deletions

View File

@@ -12,7 +12,8 @@
#elif __linux__
#include "screen_capturer_x11.h"
#elif __APPLE__
#include "screen_capturer_avf.h"
// #include "screen_capturer_avf.h"
#include "screen_capturer_sck.h"
#endif
class ScreenCapturerFactory {
@@ -26,7 +27,8 @@ class ScreenCapturerFactory {
#elif __linux__
return new ScreenCapturerX11();
#elif __APPLE__
return new ScreenCapturerAvf();
// return new ScreenCapturerAvf();
return new ScreenCapturerSck();
#else
return nullptr;
#endif