mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 12:37:09 +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["originType"] = (int) media.getOriginType();
|
||||||
item["originTypeStr"] = getOriginTypeString(media.getOriginType());
|
item["originTypeStr"] = getOriginTypeString(media.getOriginType());
|
||||||
item["originUrl"] = media.getOriginUrl();
|
item["originUrl"] = media.getOriginUrl();
|
||||||
|
item["isRecordingMP4"] = media.isRecording(Recorder::type_mp4);
|
||||||
|
item["isRecordingHLS"] = media.isRecording(Recorder::type_hls);
|
||||||
auto originSock = media.getOriginSock();
|
auto originSock = media.getOriginSock();
|
||||||
if (originSock) {
|
if (originSock) {
|
||||||
item["originSock"]["local_ip"] = originSock->get_local_ip();
|
item["originSock"]["local_ip"] = originSock->get_local_ip();
|
||||||
|
Loading…
Reference in New Issue
Block a user