From 1f02144225d1ad39a15543b99abe684d222acdff Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 16 Apr 2020 21:31:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=BD=95=E5=88=B6=E7=9B=B8?= =?UTF-8?q?=E5=85=B3api=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index a92ce0ba..f932dd66 100644 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -736,6 +736,7 @@ void installWebApi() { allArgs["customized_path"]); val["result"] = result; val["code"] = result ? API::Success : API::OtherFailed; + val["msg"] = result ? "success" : "start record failed"; }); // 停止录制hls或MP4 @@ -748,6 +749,7 @@ void installWebApi() { allArgs["stream"]); val["result"] = result; val["code"] = result ? API::Success : API::OtherFailed; + val["msg"] = result ? "success" : "stop record failed"; }); // 获取hls或MP4录制状态