Giter VIP home page Giter VIP logo

Comments (1)

RogerHardiman avatar RogerHardiman commented on May 25, 2024

We need to look at the bug in a little more detail.
The UDPSocket() function tries to open a UDP port and if it fails, it moves on to the next free port.
So the code should open Port 50000 and 500001 for video.

Then when it comes to the audio it tries to open port 50000 and finds it is already in use, so it opens port 50002 (the next free one) for the audio.

That is what the software is supposed to do and why the port range (50000 to 510000) is the same for video and audio.

We need to work this way because other applications (or other instances of SharpRTSP) could be using UDP ports in this range so we have to search for free ports.

The workwound you have is good. It moves the video ports to a new range (40000 to 41000).

But I'd like to figure out why the existing code does not work for you.

Are you able to help with some extra tests?

Thanks
Roger

from sharprtsp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.