From 8502ed27c40fe3103ec234173362763589158139 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 5 Dec 2019 12:55:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=95=E5=88=B6http=20ap?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index 4e2e14d7..5e14fce9 100644 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -693,7 +693,7 @@ void installWebApi() { }); // 开始录制hls或MP4 - API_REGIST_INVOKER(api,startRecord,{ + API_REGIST(api,startRecord,{ CHECK_SECRET(); CHECK_ARGS("type","vhost","app","stream","wait_for_record","continue_record"); int result = Recorder::startRecord((Recorder::type)allArgs["type"].as(), @@ -706,7 +706,7 @@ void installWebApi() { }); // 停止录制hls或MP4 - API_REGIST_INVOKER(api,stopRecord,{ + API_REGIST(api,stopRecord,{ CHECK_SECRET(); CHECK_ARGS("type","vhost","app","stream"); Recorder::stopRecord((Recorder::type)allArgs["type"].as(), @@ -716,7 +716,7 @@ void installWebApi() { }); // 获取hls或MP4录制状态 - API_REGIST_INVOKER(api,stopRecord,{ + API_REGIST(api,stopRecord,{ CHECK_SECRET(); CHECK_ARGS("type","vhost","app","stream"); auto status = Recorder::getRecordStatus((Recorder::type)allArgs["type"].as(),