View Source ExWebRTC.RTP.VP8Payloader (ex_webrtc v0.1.0)

Encapsulates VP8 video frames into RTP packets.

Based on RFC 7741: RTP Payload Format for VP8 Video.

It does not support X bit right now, in particular it does not pay attention to VP8 partion boundaries (see RFC 7741 sec. 4.4).

Summary

Functions

Packs VP8 frame into one or more RTP packets.

Types

@opaque t()

Functions

Link to this function

new(max_payload_size \\ 1000)

View Source
@spec new(non_neg_integer()) :: t()
Link to this function

payload(payloader, frame)

View Source
@spec payload(t(), frame :: binary()) :: {[ExRTP.Packet.t()], t()}

Packs VP8 frame into one or more RTP packets.

Fields from RTP header like ssrc, timestamp etc. are set to 0.