//
|
// Created by pansen on 2017/8/4.
|
//
|
|
#ifndef RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
|
#define RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
|
|
#include <string>
|
#include <capnp/ez-rpc.h>
|
#include "RemoteMethod.proto.h"
|
#include "CameraWrapperServer.h"
|
void startRemoteServer();
|
class RtspFaceViewClient : RtspFaceView::Client{
|
public:
|
RtspFaceViewClient();
|
~RtspFaceViewClient(){};
|
::kj::WaitScope& getWaitScope();
|
private:
|
capnp::EzRpcClient rpcClient;
|
};
|
|
const RtspFaceViewClient& getRtspFaceViewClient();
|
|
class RtspFaceDetectImpl final : public RtspFaceDetect::Server{
|
public:
|
virtual ::kj::Promise<void> fireFaceCountListener(FireFaceCountListenerContext context) override ;
|
};
|
|
#endif //RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
|