webrtc_sdp_rid (webrtc v0.1.0)

View Source

RTP stream identifier (a=rid, RFC 8851) and simulcast (a=simulcast, RFC 8853) attribute values, used through webrtc_sdp_rtp.

Summary

Types

Each direction lists simulcast streams; each stream lists alternative rids as {RidId, Paused} (~ prefix, RFC 8853 §5.1).

Types

rid/0

-type rid() ::
          #{id := binary(),
            direction := send | recv,
            pts := [0..127],
            params := [{binary(), binary() | undefined}]}.

Each direction lists simulcast streams; each stream lists alternative rids as {RidId, Paused} (~ prefix, RFC 8853 §5.1).

simulcast/0

-type simulcast() :: [{send | recv, [[{binary(), boolean()}, ...], ...]}, ...].

Functions

encode(Key, M)

-spec encode(rid | simulcast, term()) -> iodata().

parse(_, V)

-spec parse(rid | simulcast, binary()) -> {ok, rid() | simulcast()} | error.