Commit 8502ed27 by xiongziliang

修复录制http ap接口

parent 69c0c3e2
...@@ -693,7 +693,7 @@ void installWebApi() { ...@@ -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() { ...@@ -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() { ...@@ -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>(),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论