From 87fea24e8bba1bfbee707cdaa6f7979451531acc Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期六, 19 十月 2019 10:23:01 +0800 Subject: [PATCH] add interface rec duration --- csrc/wrapper.hpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/csrc/wrapper.hpp b/csrc/wrapper.hpp index ca528f9..4ae1a4f 100644 --- a/csrc/wrapper.hpp +++ b/csrc/wrapper.hpp @@ -44,10 +44,12 @@ void BuildRecorder(const char* id,const char *dir, const int mind, const int maxd, const bool audio); int FireRecorder(const char* sid,const int64_t &id); void GetInfoRecorder(std::string &recID, int &index, std::string &path); - + + public: void GB28181(){gb_ = 1;} void CPUDec(){cpu_ = 1;} void AudioSwitch(const bool a); + void SetRecMinCacheTime(const int mind); public: //decoder void BuildDecoder(); void GetPicDecoder(unsigned char **data, int *w, int *h, int *format, int *length, int64_t *id); -- Gitblit v1.8.0