|
3 | 3 | #include <tchar.h> |
4 | 4 | #pragma comment(lib,"XEngine_BaseLib/XEngine_BaseLib") |
5 | 5 | #pragma comment(lib,"XEngine_Client/XClient_Socket") |
| 6 | +#pragma comment(lib,"XEngine_Client/XClient_APIHelp") |
6 | 7 | #pragma comment(lib,"XEngine_AVCodec/XEngine_AVCollect") |
7 | 8 | #pragma comment(lib,"XEngine_AVCodec/XEngine_VideoCodec") |
8 | | -#pragma comment(lib,"XEngine_NetHelp/NetHelp_APIClient") |
9 | 9 | #pragma comment(lib,"Ws2_32") |
10 | 10 | #endif |
11 | 11 | #include <list> |
|
17 | 17 | #include <XEngine_Include/XEngine_BaseLib/BaseLib_Error.h> |
18 | 18 | #include <XEngine_Include/XEngine_Client/XClient_Define.h> |
19 | 19 | #include <XEngine_Include/XEngine_Client/XClient_Error.h> |
| 20 | +#include <XEngine_Include/XEngine_Client/APIClient_Define.h> |
| 21 | +#include <XEngine_Include/XEngine_Client/APIClient_Error.h> |
20 | 22 | #include <XEngine_Include/XEngine_AVCodec/AVCollect_Define.h> |
21 | 23 | #include <XEngine_Include/XEngine_AVCodec/AVCollect_Error.h> |
22 | 24 | #include <XEngine_Include/XEngine_AVCodec/VideoCodec_Define.h> |
23 | 25 | #include <XEngine_Include/XEngine_AVCodec/VideoCodec_Error.h> |
24 | | -#include <XEngine_Include/XEngine_NetHelp/APIClient_Define.h> |
25 | | -#include <XEngine_Include/XEngine_NetHelp/APIClient_Error.h> |
26 | 26 | #include "../../XEngine_Source/XEngine_UserProtocol.h" |
27 | 27 | using namespace std; |
28 | 28 |
|
29 | 29 | //需要优先配置XEngine |
30 | 30 | //WINDOWS使用VS2022 x86 或者 x64 debug 编译 |
31 | | -//linux::g++ -std=c++17 -Wall -g APPClient_XStream.cpp -o APPClient_XStream.exe -I ../../XEngine_Source/XEngine_ThirdPart/jsoncpp -L /usr/local/lib/XEngine_Release/XEngine_BaseLib -L /usr/local/lib/XEngine_Release/XEngine_NetHelp -L /usr/local/lib/XEngine_Release/XEngine_SystemSdk -L ../../XEngine_Source/XEngine_ThirdPart/jsoncpp -lXEngine_BaseLib -lNetHelp_APIClient -lXEngine_SystemApi -ljsoncpp |
32 | | -//macos::g++ -std=c++17 -Wall -g APPClient_XStream.cpp -o APPClient_XStream.exe -I ../../XEngine_Source/XEngine_ThirdPart/jsoncpp -L ../../XEngine_Source/XEngine_ThirdPart/jsoncpp -lXEngine_BaseLib -lNetHelp_APIClient -lXEngine_SystemApi -ljsoncpp |
| 31 | +//g++ -std=c++17 -Wall -g APPClient_XStream.cpp -o APPClient_XStream.exe -lXEngine_BaseLib -lXClient_Socket -lXClient_APIHelp -lXEngine_AVCollect -lXEngine_VideoCodec |
| 32 | + |
33 | 33 | XSOCKET hSocket = 0; |
34 | 34 | XNETHANDLE xhVideo = 0; |
35 | 35 | __int64u nTimeVideo = 0; |
36 | 36 | FILE* pSt_File = NULL; |
37 | 37 |
|
38 | | -void CALLBACK XEngine_AVCollect_CBVideo(uint8_t* punStringY, int nYLen, uint8_t* punStringU, int nULen, uint8_t* punStringV, int nVLen, XPVOID lParam) |
| 38 | +void CALLBACK XEngine_AVCollect_CBVideo(uint8_t* punStringY, int nYLen, uint8_t* punStringU, int nULen, uint8_t* punStringV, int nVLen, AVCOLLECT_TIMEINFO* pSt_TimeInfo, XPVOID lParam) |
39 | 39 | { |
40 | 40 | XCHAR* ptszMsgBuffer = (XCHAR*)malloc(XENGINE_MEMORY_SIZE_MAX); |
41 | 41 | XENGINE_PROTOCOLHDR st_ProtocolHdr; |
@@ -75,7 +75,7 @@ void CALLBACK XEngine_AVCollect_CBVideo(uint8_t* punStringY, int nYLen, uint8_t* |
75 | 75 | free(ptszMsgBuffer); |
76 | 76 | ptszMsgBuffer = NULL; |
77 | 77 | } |
78 | | -void CALLBACK XEngine_AVCollect_CBAudio(uint8_t* punStringAudio, int nVLen, XPVOID lParam) |
| 78 | +void CALLBACK XEngine_AVCollect_CBAudio(uint8_t* punStringAudio, int nVLen, AVCOLLECT_TIMEINFO* pSt_TimeInfo, XPVOID lParam) |
79 | 79 | { |
80 | 80 |
|
81 | 81 | } |
|
0 commit comments