完善stopRecord接口

This commit is contained in:
xiongziliang
2019-12-05 14:31:44 +08:00
parent 055c312579
commit 10dc254510
3 changed files with 10 additions and 8 deletions

View File

@@ -709,10 +709,11 @@ void installWebApi() {
API_REGIST(api,stopRecord,{
CHECK_SECRET();
CHECK_ARGS("type","vhost","app","stream");
Recorder::stopRecord((Recorder::type)allArgs["type"].as<int>(),
allArgs["vhost"],
allArgs["app"],
allArgs["stream"]);
int result = Recorder::stopRecord((Recorder::type)allArgs["type"].as<int>(),
allArgs["vhost"],
allArgs["app"],
allArgs["stream"]);
val["result"] = result;
});
// 获取hls或MP4录制状态