Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send RTSP Receiver Reports more frequently? #24

Open
okdzhimiev opened this issue Mar 13, 2019 · 0 comments
Open

How to send RTSP Receiver Reports more frequently? #24

okdzhimiev opened this issue Mar 13, 2019 · 0 comments

Comments

@okdzhimiev
Copy link

Hi,

I'm playing an rtsp stream (over UDP) from a network camera with vlc which uses live555 for receiving packets. And once in a while it sends out a Receiver Report (RR) with stats.

I would like to make live555 to send out RRs once every N packets (e.g. N=50) received from the sender. How can I do this?

In the network there can be switches with lower bandwidth (like wifi) than immediate camera or pc links. This results in congestions where UDP packets overflow some switch's buffer (128kB in my case) and get dropped. So, I'm thinking about having some sort of a flow control (with a short reaction time) on the sender side based on RRs from receiver but without resending lost packets (like TCP would do).

So, I've checked the code and liveMedia/MultiFramedRTPSource.cpp looks like a good place:

...
receptionStatsDB().noteIncomingPacket(...);
// code begin
if ((receptionStatsDB().totNumPacketsReceived()%50)==0){
    someRTCPInstance.sendReport();
}
// code end
...

Haven't figure out what that someRTCPInstance should be.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant