webrtc_rtcp_xr (webrtc v0.1.0)

View Source

RTCP extended reports (RFC 3611), PT 207.

Decoded blocks: Receiver Reference Time {rrtr, Ntp64} (§4.4) and DLRR {dlrr, [{Ssrc, LastRR, DelaySinceLastRR}]} (§4.5), which together give round-trip times to receivers that do not send RTP. Other block types are kept as {BlockType, TypeSpecific, Body}. Called by webrtc_rtcp.

Summary

Functions

Encode the body of an XR packet (after the common header).

Types

block/0

-type block() ::
          {rrtr, 0..18446744073709551615} |
          {dlrr, [{0..4294967295, 0..4294967295, 0..4294967295}]} |
          {0..255, 0..255, binary()}.

rtcp_u32/0

-type rtcp_u32() :: 0..4294967295.

Functions

decode(_)

-spec decode(binary()) ->
                {ok, #rtcp_xr{ssrc :: rtcp_u32(), blocks :: [webrtc_rtcp_xr:block()]}} | {error, term()}.

encode(Rtcp_xr)

-spec encode(#rtcp_xr{ssrc :: rtcp_u32(), blocks :: [webrtc_rtcp_xr:block()]}) -> binary().

Encode the body of an XR packet (after the common header).