diff --git a/src/Rtp/RtpProcess.cpp b/src/Rtp/RtpProcess.cpp index 7ce5c507..d004110b 100644 --- a/src/Rtp/RtpProcess.cpp +++ b/src/Rtp/RtpProcess.cpp @@ -291,6 +291,7 @@ int RtpProcess::getLossRate(MediaSource &sender, TrackType type) if (!expected) { return 0; } + return help->geLostInterval() * 100 / expected; } }//namespace mediakit