RTSP.RTP.Decoder behaviour (RTSP v0.3.2)
View SourceBehaviour to depayload and parse rtp packets.
Summary
Callbacks
Invoked when a discontinuity occurred.
Invoked when a new RTP packet is received
Initialize deapyloader
Types
@type rtp_timestamp() :: non_neg_integer()
@type sample() :: {binary() | [binary()], rtp_timestamp(), keyframe? :: boolean()}
@type state() :: any()
Callbacks
Invoked when a discontinuity occurred.
A discontinuity occurs when an RTP packet is lost or missing by examining the sequence numbers.
@callback handle_packet(ExRTP.Packet.t(), state()) :: {:ok, sample() | [sample()], state()} | {:error, any()}
Invoked when a new RTP packet is received
Initialize deapyloader