// // Created by pansen on 2017/8/4. // #include "RemoteFuncClient.h" #include "RemoteFunc.h" #include "RtspNativeCodecJNIClient.h" RemoteServer remoteServer("127.0.0.1", 8111); void startRemoteServer() { remoteServer.start(); } RtspFaceViewClient rtspFaceViewClient; RtspFaceViewClient &RtspFaceViewClient() { return rtspFaceViewClient; } RtspFaceViewClient::RtspFaceViewClient() : rpcClient("127.0.0.1", 8112), RtspFaceView::Client(rpcClient.getMain()) {} ::kj::WaitScope &RtspFaceViewClient::getWaitScope() { return rpcClient.getWaitScope(); } ::kj::Promise RtspFaceDetectImpl::fireFaceCountListener(FireFaceCountListenerContext context) { auto results = context.getResults(); remoteFireFaceCountListener(context.getParams(), results); context.setResults(results); }