Skip to content

RtspClientExample/RTSPClient.cs UDP Socket Port Number Problem #62

@poweryang1

Description

@poweryang1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions