From 7641db4225bd9c1befe2369af4a9bbb4a1c47ca0 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 22 May 2021 09:31:59 +0800 Subject: [PATCH] =?UTF-8?q?getMediaList=E7=AD=89=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=BD=95=E5=88=B6=E7=8A=B6=E6=80=81:#876?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index 9160c559..5d70924c 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -261,6 +261,8 @@ Value makeMediaSourceJson(MediaSource &media){ item["originType"] = (int) media.getOriginType(); item["originTypeStr"] = getOriginTypeString(media.getOriginType()); item["originUrl"] = media.getOriginUrl(); + item["isRecordingMP4"] = media.isRecording(Recorder::type_mp4); + item["isRecordingHLS"] = media.isRecording(Recorder::type_hls); auto originSock = media.getOriginSock(); if (originSock) { item["originSock"]["local_ip"] = originSock->get_local_ip();