Skip to content

Commit e81eef6

Browse files
committed
added:record screen macos support
1 parent 1ae9aaa commit e81eef6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

XEngine_Source/XEngine_ServiceApp/XEngine_HttpApp/XEngine_TaskPost/TaskPost_BackService.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,10 @@ bool HTTPTask_TaskPost_BackService(LPCXSTR lpszClientAddr, LPCXSTR lpszMsgBuffer
343343
st_AVScreen.nPosY = 0;
344344
#ifdef _MSC_BUILD
345345
xhScreen = AVCollect_Video_Init("gdigrab", "desktop", &st_AVScreen, HTTPTask_TaskPost_CBVideo);
346-
#else
346+
#elif __linux__
347347
xhScreen = AVCollect_Video_Init("x11grab", ":0", &st_AVScreen, HTTPTask_TaskPost_CBVideo);
348+
#else
349+
xhScreen = AVCollect_Video_Init("avfoundation", "1", &st_AVScreen, HTTPTask_TaskPost_CBVideo);
348350
#endif
349351
if (NULL == xhScreen)
350352
{

0 commit comments

Comments
 (0)