remove rtsp session

This commit is contained in:
pigeatgarlic 2024-02-20 09:38:51 +07:00
parent c2b6b6a6dc
commit 68740944db
4 changed files with 2 additions and 28 deletions

View File

@ -789,8 +789,6 @@ namespace nvhttp {
}
}
rtsp_stream::launch_session_raise(launch_session);
tree.put("root.<xmlattr>.status_code", 200);
tree.put("root.sessionUrl0", "rtsp://"s + net::addr_to_url_escaped_string(request->local_endpoint().address()) + ':' + std::to_string(map_port(rtsp_stream::RTSP_SETUP_PORT)));
tree.put("root.gamesession", 1);
@ -860,8 +858,6 @@ namespace nvhttp {
}
}
rtsp_stream::launch_session_raise(make_launch_session(host_audio, args));
tree.put("root.<xmlattr>.status_code", 200);
tree.put("root.sessionUrl0", "rtsp://"s + net::addr_to_url_escaped_string(request->local_endpoint().address()) + ':' + std::to_string(map_port(rtsp_stream::RTSP_SETUP_PORT)));
tree.put("root.resume", 1);

View File

@ -395,18 +395,6 @@ namespace rtsp_stream {
rtsp_server_t server {};
void
launch_session_raise(rtsp_stream::launch_session_t launch_session) {
server.session_raise(launch_session);
}
int
session_count() {
// Ensure session_count is up-to-date
server.clear(false);
return server.session_count();
}
int
send(tcp::socket &sock, const std::string_view &sv) {
@ -711,8 +699,8 @@ namespace rtsp_stream {
return;
}
auto a = util::from_hex<crypto::aes_t>("", true);
auto b = util::from_hex<crypto::aes_t>("", true);
auto a = util::from_hex<crypto::aes_t>("0", true);
auto b = util::from_hex<crypto::aes_t>("0", true);
auto session = stream::session::alloc(config, a,b);
auto slot = server->accept(session);

View File

@ -28,11 +28,6 @@ namespace rtsp_stream {
bool enable_sops;
};
void
launch_session_raise(launch_session_t launch_session);
int
session_count();
void
rtpThread();

View File

@ -987,11 +987,6 @@ namespace stream {
}
// Don't break until any pending sessions either expire or connect
if (proc::proc.running() == 0 && !has_session_awaiting_peer) {
BOOST_LOG(info) << "Process terminated"sv;
break;
}
server->iterate(150ms);
}