rtpmanager: add new rtprtxsend / rtprtxreceive elements
authorJulien Isorce <julien.isorce@collabora.co.uk>
Fri, 1 Nov 2013 15:52:03 +0000 (15:52 +0000)
committerWim Taymans <wtaymans@redhat.com>
Fri, 3 Jan 2014 19:47:59 +0000 (20:47 +0100)
commit5a1aa75961e56a0e07d1c5c89015f69a96d1ef34
tree1949a93c31d2879aa33fe096043ddc29dcc8f386
parent19c0e9203198f39bedb040ac842cc5db500d417c
rtpmanager: add new rtprtxsend / rtprtxreceive elements

The purpose of the sender RTX object is to keep a history
of RTP packets up to a configurable limit (in time). It will
listen for custom retransmission events from downstream. When
it receives a request for retransmission, it will look up the
requested seqnum in its list of stored packets. If the packet
is available, it will create a RTX packet according to RFC 4588
and send this as an auxiliary stream.

The receiver will listen to the custom retransmission events
from the downstream jitterbuffer and will remember the SSRC1
of the stream and seqnum that was requested. When it sees a
packet with one of the stored seqnum, it associates the SSRC2
of the stream with the SSRC1 of the master stream. From then
on it knows that SSRC2 is the retransmission stream of SSRC1.
This algorithm is stated in RFC 4588. For this algorithm to
work, RFC4588 also states that no two pending retransmission
requests can exist for the same seqnum and different SSRCs or
else it would be impossible to associate the retransmission with
the original requester SSRC.
When the RTX receiver has associated the retransmission packets,
it can depayload and forward them to the source pad of the element.

RTX is SSRC-multiplexed

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=711084
gst/rtpmanager/Makefile.am
gst/rtpmanager/gstrtpmanager.c
gst/rtpmanager/gstrtprtxreceive.c [new file with mode: 0644]
gst/rtpmanager/gstrtprtxreceive.h [new file with mode: 0644]
gst/rtpmanager/gstrtprtxsend.c [new file with mode: 0644]
gst/rtpmanager/gstrtprtxsend.h [new file with mode: 0644]