mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
parent
3e7e1a317e
commit
9727e03c2e
@ -176,6 +176,8 @@ void RtpServer::start(uint16_t local_port, const MediaTuple &tuple, TcpMode tcp_
|
|||||||
udp_server = std::make_shared<UdpServer>();
|
udp_server = std::make_shared<UdpServer>();
|
||||||
(*udp_server)[RtpSession::kOnlyTrack] = only_track;
|
(*udp_server)[RtpSession::kOnlyTrack] = only_track;
|
||||||
(*udp_server)[RtpSession::kUdpRecvBuffer] = udpRecvSocketBuffer;
|
(*udp_server)[RtpSession::kUdpRecvBuffer] = udpRecvSocketBuffer;
|
||||||
|
(*udp_server)[RtpSession::kVhost] = tuple.vhost;
|
||||||
|
(*udp_server)[RtpSession::kApp] = tuple.app;
|
||||||
udp_server->start<RtpSession>(local_port, local_ip);
|
udp_server->start<RtpSession>(local_port, local_ip);
|
||||||
rtp_socket = nullptr;
|
rtp_socket = nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user