getMediaPlayerList返回播放器id以及会话类型名称

This commit is contained in:
custompal 2022-09-01 21:52:43 +08:00
parent d0214a13e1
commit 33e1e6b88d

View File

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