mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
rtp组播监听组播地址
更新ZLToolKit
This commit is contained in:
parent
4db67aaa27
commit
2217211464
@ -1 +1 @@
|
|||||||
Subproject commit 02c344efb0eba8bd4f1eec8fb5dce3db5bda284a
|
Subproject commit 8390b18171dd7a49b71cb28bd718bb9372c1421b
|
@ -305,7 +305,7 @@ void RtspPlayer::handleResSETUP(const Parser &parser, unsigned int uiTrackIndex)
|
|||||||
//udp组播
|
//udp组播
|
||||||
auto multiAddr = FindField((strTransport + ";").data(), "destination=", ";");
|
auto multiAddr = FindField((strTransport + ";").data(), "destination=", ";");
|
||||||
pRtpSockRef.reset(new Socket());
|
pRtpSockRef.reset(new Socket());
|
||||||
if (!pRtpSockRef->bindUdpSock(rtp_port, "0.0.0.0")) {
|
if (!pRtpSockRef->bindUdpSock(rtp_port, multiAddr.data())) {
|
||||||
pRtpSockRef.reset();
|
pRtpSockRef.reset();
|
||||||
throw std::runtime_error("open udp sock err");
|
throw std::runtime_error("open udp sock err");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user