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/worker/rec.hpp | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/csrc/worker/rec.hpp b/csrc/worker/rec.hpp index a19ea29..c802d9a 100644 --- a/csrc/worker/rec.hpp +++ b/csrc/worker/rec.hpp @@ -23,9 +23,9 @@ { private: ffwrapper::FormatIn *recRef_; - int maxduration_; - int minduration_; - + int min_cache_len_; + // 鏁翠釜娴佺▼鑰楁椂琛ュ伩褰曞埗鏃堕棿,2s榛樿 + const int time_offset_; // 褰曞儚鐨勫疄渚�,瀵瑰簲浠诲姟 std::unordered_map<std::string, std::unique_ptr<buz::Recorder> > map_rec_; // 澶氱嚎绋嬫坊鍔犱换鍔″疄渚�,鍦ㄨ娴佺嚎绋嬩娇鐢ㄥ綍鍍�,浣嗘槸娣诲姞鍦ㄥ彟涓�涓嚎绋� @@ -71,6 +71,8 @@ // 鑾峰彇褰曞儚鏂囦欢璺緞鍜屽抚id void GetRecInfo(std::string &recID, int &index, std::string &path); + // 璁剧疆褰曞埗鏃堕暱浣滀负缂撳瓨 + void SetRecMinCacheTime(const int min); public: rec(); ~rec(); -- Gitblit v1.8.0