mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
getMediaList等接口返回录制状态:#876
This commit is contained in:
parent
f54e02f511
commit
7641db4225
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user