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/cffmpeg.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/csrc/cffmpeg.cpp b/csrc/cffmpeg.cpp
index 824b2a7..690f061 100644
--- a/csrc/cffmpeg.cpp
+++ b/csrc/cffmpeg.cpp
@@ -45,6 +45,11 @@
 
 
 //////passive api
+void c_ffmpeg_set_record_duration(const cffmpeg h, const int min, const int max){
+    Wrapper *s = (Wrapper*)h;
+    s->SetRecMinCacheTime(min);
+}
+
 void c_ffmpeg_build_recorder(const cffmpeg h, const char* id, const char *dir, int mind, int maxd, int audio){
     Wrapper *s = (Wrapper*)h;
 

--
Gitblit v1.8.0