webrtc icon indicating copy to clipboard operation
webrtc copied to clipboard

How can I receive or deal the RTX packet?

Open ChenMoGe2 opened this issue 3 years ago • 8 comments

Your environment. Version: 3.1.42

ChenMoGe2 avatar Jul 07 '22 08:07 ChenMoGe2

It looks like rtx packets not supported by default and it is strange why rtx declared in func (m *MediaEngine) RegisterDefaultCodecs() Please see https://github.com/pion/webrtc/issues/1675 for details. I removed rtx and back to NACK. NACK works. May be I missed something. I'm new with pion

alexpokotilo avatar Jul 08 '22 04:07 alexpokotilo

@alexpokotilo Thank you!

ChenMoGe2 avatar Jul 08 '22 13:07 ChenMoGe2

Hi!

We currently don't support RTX as a distinct SSRC. We do support NACK + RTX though, you can see the implementation here

Sean-Der avatar Jul 11 '22 14:07 Sean-Der

HI @Sean-Der, first of all thanks for this stack! Your job is great and your team is wonderful! Could you please explain what do you mean by NACK+RTX ? Is it just sending NACK and receiving re-transmitted packets ? I am able to receive re-transmitted packets when I removed RTX stream from sdp. I still don't understand why RTX stream declared in sdp by default if it doesn't work. Could you please answer to a question I posted in RTX-support ticket here https://github.com/pion/webrtc/issues/1675#issuecomment-1178532894 Thanks a lot!

alexpokotilo avatar Jul 11 '22 14:07 alexpokotilo

Hi!

We currently don't support RTX as a distinct SSRC. We do support NACK + RTX though, you can see the implementation here

Hello,Thank you for your reply.If I want support RTX as a distinct SSRC,how do I do?I see your reply in issue https://github.com/pion/webrtc/issues/1675,but I try to do it but I failed.Could you give a more complete plan?Thank you!

ChenMoGe2 avatar Aug 11 '22 01:08 ChenMoGe2

Hi @ChenMoGe2, why do you need RTX with distinct SSRC ? NACK works fine and as far as I understand does the same as RTX+distinct SSRC. Please explain your considerations as I'm a newbie too.

alexpokotilo avatar Aug 11 '22 08:08 alexpokotilo

Hi @ChenMoGe2, why do you need RTX with distinct SSRC ? NACK works fine and as far as I understand do the same as RTX+distinct SSRC. Please explain your considerations as I'm newbie too.

Hello @alexpokotilo ,thank you for your reply. I use RTX with distinct SSRC because for packet loss statistics.If you just use NACK,the packet loss statistics maybe a negative number.RTX distinct SSRC is designed for it.The packet resend on the RTX ssrc and the packet loss statistics will be correct

ChenMoGe2 avatar Aug 11 '22 08:08 ChenMoGe2

Hi @ChenMoGe2, could you please give me something to read about this statistics measurement problem? Besides statistics re-transmission works the same, right ?

alexpokotilo avatar Aug 12 '22 01:08 alexpokotilo

This has been implemented!

If a remote Peer sends a RTX with a distinct SSRC Pion now returns in via the Read. You can see a test for it here

Sean-Der avatar Apr 28 '24 03:04 Sean-Der