rtsp-server: Implement clock signalling according to RFC7273
authorSebastian Dröge <sebastian@centricular.com>
Wed, 30 Dec 2015 16:39:05 +0000 (18:39 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 3 Apr 2016 08:22:31 +0000 (11:22 +0300)
commit9fab555cc598d701b8911926193f8005471e2ded
treeff15e2fc44d8c0f13c8629830ae87f2bf70a2043
parentb63a6f029f478a859ac6dc6ac1d422072fdc70a0
rtsp-server: Implement clock signalling according to RFC7273

For NTP and PTP clocks we signal the actual clock that is used and signal
the direct media clock offset.

For all other clocks we at least signal that it's the local sender clock.

This allows receivers to know which clock was used to generate the media and
its RTP timestamps. Receivers can then implement network synchronization,
either absolute or at least relative by getting the sender clock rate directly
via NTP/PTP instead of estimating it from RTP timestamps and packet receive
times.

https://bugzilla.gnome.org/show_bug.cgi?id=760005
gst/rtsp-server/rtsp-client.c
gst/rtsp-server/rtsp-media-factory.c
gst/rtsp-server/rtsp-media-factory.h
gst/rtsp-server/rtsp-media.c
gst/rtsp-server/rtsp-media.h
gst/rtsp-server/rtsp-sdp.c
gst/rtsp-server/rtsp-stream.c
gst/rtsp-server/rtsp-stream.h