Skip to content

Android Port Conflict (.NET issue) #74

@belveder79

Description

@belveder79

I just tried using the library on an Android device, and I realized that the SocketException is not thrown even if the UDP port is already used:

catch (SocketException)

Don't ask me why... I did not find any reference or similar issue anywhere. I just worked around it by specifying two different port ranges for audio and video here (respectively offsetting the audio port range by two from 50000 to 50002 works also):

audio_udp_pair = new Rtsp.UDPSocket(50000, 51000); // give a range of 500 pairs (1000 addresses) to try incase some address are in use

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