修复录制http ap接口

This commit is contained in:
xiongziliang 2019-12-05 12:55:43 +08:00
parent 69c0c3e237
commit 8502ed27c4

View File

@ -693,7 +693,7 @@ void installWebApi() {
}); });
// 开始录制hls或MP4 // 开始录制hls或MP4
API_REGIST_INVOKER(api,startRecord,{ API_REGIST(api,startRecord,{
CHECK_SECRET(); CHECK_SECRET();
CHECK_ARGS("type","vhost","app","stream","wait_for_record","continue_record"); CHECK_ARGS("type","vhost","app","stream","wait_for_record","continue_record");
int result = Recorder::startRecord((Recorder::type)allArgs["type"].as<int>(), int result = Recorder::startRecord((Recorder::type)allArgs["type"].as<int>(),
@ -706,7 +706,7 @@ void installWebApi() {
}); });
// 停止录制hls或MP4 // 停止录制hls或MP4
API_REGIST_INVOKER(api,stopRecord,{ API_REGIST(api,stopRecord,{
CHECK_SECRET(); CHECK_SECRET();
CHECK_ARGS("type","vhost","app","stream"); CHECK_ARGS("type","vhost","app","stream");
Recorder::stopRecord((Recorder::type)allArgs["type"].as<int>(), Recorder::stopRecord((Recorder::type)allArgs["type"].as<int>(),
@ -716,7 +716,7 @@ void installWebApi() {
}); });
// 获取hls或MP4录制状态 // 获取hls或MP4录制状态
API_REGIST_INVOKER(api,stopRecord,{ API_REGIST(api,stopRecord,{
CHECK_SECRET(); CHECK_SECRET();
CHECK_ARGS("type","vhost","app","stream"); CHECK_ARGS("type","vhost","app","stream");
auto status = Recorder::getRecordStatus((Recorder::type)allArgs["type"].as<int>(), auto status = Recorder::getRecordStatus((Recorder::type)allArgs["type"].as<int>(),