View Source ExRTCP.Packet.TransportFeedback.NACK (ex_rtcp v0.4.0)

Transport layer feedback message with generic NACKs packet type (RFC 4585, sec. 6.2.1).

Summary

Types

Generic NACK message, as described in RFC 4585, sec. 6.2.1. blp must be a 16-bit binary.

t()

Struct representing Transport layer NACK feedback RTCP message.

Functions

Creates a list of sequence numbers from t/0.

Types

@type generic_nack() :: %{pid: ExRTCP.Packet.uint16(), blp: binary()}

Generic NACK message, as described in RFC 4585, sec. 6.2.1. blp must be a 16-bit binary.

@type t() :: %ExRTCP.Packet.TransportFeedback.NACK{
  media_ssrc: ExRTCP.Packet.uint32(),
  nacks: [generic_nack()],
  sender_ssrc: ExRTCP.Packet.uint32()
}

Struct representing Transport layer NACK feedback RTCP message.

Functions

Link to this function

from_sequence_numbers(sender_ssrc, media_ssrc, sequence_numbers)

View Source
@spec from_sequence_numbers(ExRTCP.Packet.uint32(), ExRTCP.Packet.uint32(), [
  ExRTCP.Packet.uint16()
]) ::
  t()

Creates t/0 from a list of sequence numbers.

Works with assumption that all of the sequence numbers will fit in a single feedback.

Link to this function

to_sequence_numbers(packet)

View Source
@spec to_sequence_numbers(t()) :: [ExRTCP.Packet.uint16()]

Creates a list of sequence numbers from t/0.