if (rtp_transport == RTP_TRANSPORT.UDP)
{
video_udp_pair = new Rtsp.UDPSocket(40000, 41000); //video_udp_pair = new Rtsp.UDPSocket(50000, 51000);
video_udp_pair.DataReceived += Rtp_DataReceived;
video_udp_pair.Start(); // start listening for data on the UDP ports
audio_udp_pair = new Rtsp.UDPSocket(50000, 51000);
audio_udp_pair.DataReceived += Rtp_DataReceived;
audio_udp_pair.Start(); // start listening for data on the UDP ports
}
I tested with VLC Stream Server.
VLC Stream Server uses UDP Streaming, so I can find a bug in sample code.
The video_udp_pair Socket Port number is same as the audio_udp_pair Socket Port number.
Can you fix it?