RtpServer支持udp与tcp模式并存

This commit is contained in:
ziyue
2022-11-01 17:27:27 +08:00
parent 60d96f4f3b
commit 2cdeddeb2c
4 changed files with 67 additions and 51 deletions

View File

@@ -191,8 +191,8 @@ void RtpProcess::onDetach() {
}
}
void RtpProcess::setOnDetach(const function<void()> &cb) {
_on_detach = cb;
void RtpProcess::setOnDetach(function<void()> cb) {
_on_detach = std::move(cb);
}
string RtpProcess::get_peer_ip() {