Skip to content
Snippets Groups Projects

webrtc: add RFC 7273 support

Merged François Laignel requested to merge fengalin/gst-plugins-rs:webrtc-rfc7273 into main
  1. Apr 12, 2024
    • François Laignel's avatar
      webrtc: add RFC 7273 support · 83d70d34
      François Laignel authored
      This commit implements [RFC 7273] (NTP & PTP clock signalling & synchronization)
      for `webrtcsink` by adding the "ts-refclk" & "mediaclk" SDP media attributes to
      identify the clock. These attributes are handled by `rtpjitterbuffer` on the
      consumer side. They MUST be part of the SDP offer.
      
      When used with an NTP or PTP clock, "mediaclk" indicates the RTP offset at the
      clock's origin. Because the payloaders are not instantiated when the offer is
      sent to the consumer, the RTP offset is set to 0 and the payloader
      `timstamp-offset`s are set accordingly when they are created.
      
      The `webrtc-precise-sync` examples were updated to be able to start with an NTP
      (default), a PTP or the system clock (on the receiver only). The rtp jitter
      buffer will synchronize with the clock signalled in the SDP offer provided the
      sender is started with `--do-clock-signalling` & the receiver with
      `--expect-clock-signalling`.
      
      [RFC 7273]: https://datatracker.ietf.org/doc/html/rfc7273
      
      Part-of: <!1500>
      83d70d34
Loading