mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-29 22:55:52 +08:00
getMediaPlayerList返回播放器id以及会话类型名称
This commit is contained in:
parent
d0214a13e1
commit
33e1e6b88d
@ -764,6 +764,8 @@ void installWebApi() {
|
|||||||
auto session = static_pointer_cast<Session>(info);
|
auto session = static_pointer_cast<Session>(info);
|
||||||
(*obj)["peer_ip"] = session->get_peer_ip();
|
(*obj)["peer_ip"] = session->get_peer_ip();
|
||||||
(*obj)["peer_port"] = session->get_peer_port();
|
(*obj)["peer_port"] = session->get_peer_port();
|
||||||
|
(*obj)["id"] = session->getIdentifier();
|
||||||
|
(*obj)["typeid"] = toolkit::demangle(typeid(*session).name());
|
||||||
return obj;
|
return obj;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user