getMediaList等接口返回录制状态:#876

This commit is contained in:
xiongziliang 2021-05-22 09:31:59 +08:00
parent f54e02f511
commit 7641db4225

View File

@ -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();