Skip to content
  • François Laignel's avatar
    webrtc: add raw payload support · 34b791ff
    François Laignel authored and GStreamer Marge Bot's avatar GStreamer Marge Bot committed
    This commit adds support for raw payloads such as L24 audio to `webrtcsink` &
    `webrtcsrc`.
    
    Most changes take place within the `Codec` helper structure:
    
    * A `Codec` can now advertise a depayloader. This also ensures that a format
      not only can be decoded when necessary, but it can also be depayloaded in the
      first place.
    * It is possible to declare raw `Codec`s, meaning that their caps are compatible
      with a payloader and a depayloader without the need for an encoder and decoder.
    * Previous accessor `has_decoder` was renamed as `can_be_received` to account
      for codecs which can be handled by an available depayloader with or without
      the need for a decoder.
    * New codecs were added for the following formats:
      * L24, L16, L8 audio.
      * RAW video.
    
    The `webrtc-precise-sync` examples were updated to demonstrate streaming of raw
    audio or video.
    
    Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1501>
    34b791ff