完善录制相关api错误提示

This commit is contained in:
xiongziliang 2020-04-16 21:31:07 +08:00
parent 6b621d42db
commit 1f02144225

View File

@ -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录制状态