webrtc_rtcp_xr (webrtc v0.1.0)
View SourceRTCP 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
Types
-type block() :: {rrtr, 0..18446744073709551615} | {dlrr, [{0..4294967295, 0..4294967295, 0..4294967295}]} | {0..255, 0..255, binary()}.
-type rtcp_u32() :: 0..4294967295.
Functions
-spec decode(binary()) -> {ok, #rtcp_xr{ssrc :: rtcp_u32(), blocks :: [webrtc_rtcp_xr:block()]}} | {error, term()}.
-spec encode(#rtcp_xr{ssrc :: rtcp_u32(), blocks :: [webrtc_rtcp_xr:block()]}) -> binary().
Encode the body of an XR packet (after the common header).