interceptor icon indicating copy to clipboard operation
interceptor copied to clipboard

Increment rtx rtp packet sequence number only when trasmitted

Open oto313 opened this issue 1 year ago • 3 comments

Fix for wrong sequence numbers

Currently the nack responder (responder_interceptor.go) generates RTX RTP packet which has not right sequence numbers. It does not increment the sequence number by one according to RFC rfc4588

For either multiplexing scheme, the sequence number has the standard definition; i.e., it MUST be one higher than the sequence number of the preceding packet sent in the retransmission stream.

I am proposing fix for it and appreciate any feedback as this is my first pull request in GO lang.

oto313 avatar Oct 29 '24 16:10 oto313

Nice find @oto313! How did you find this, I am really impressed! If you run go test -v locally you have some build/test failures.

  • Maybe we make this part of Get? Auto-increments (if needed)
  • We should write some tests that it does the auto increment as expected

Sean-Der avatar Oct 29 '24 21:10 Sean-Der

Hi @Sean-Der. Thanks. I was investigating why retransmission not worked in my use case and I was investigating it with wireshark and I compared retransmission packets with google webrtc implementation.

If you run go test -v locally you have some build/test failures.

Sorry the build/tests are fixed

Maybe we make this part of Get? Auto-increments (if needed)

part of which Get?

oto313 avatar Oct 30 '24 14:10 oto313

Hi @Sean-Der, so now i fixed the tests. Hopefully now we can merge it. Thanks

oto313 avatar Mar 18 '25 13:03 oto313