Class Vp8Packetizer
Splits VP8 frames into RTP payloads, RFC 7741: each starts with a payload descriptor carrying a 15-bit picture ID, which receivers use to notice lost frames; the first of a frame has the start bit.
Inherited Members
Namespace: Uniform.Matrix.WebRtc.Rtp
Assembly: Uniform.Matrix.WebRtc.dll
Syntax
public sealed class Vp8Packetizer
Constructors
| Edit this page View SourceVp8Packetizer()
Start from a random picture ID, as senders should.
Declaration
public Vp8Packetizer()
Fields
| Edit this page View SourceDescriptorLength
Length of the descriptor written: the first byte, the extension byte and the 15-bit picture ID.
Declaration
public const int DescriptorLength = 4
Field Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourcePacketize(ReadOnlySpan<byte>, int)
Return the payloads of frame, each at most maxPayload bytes with its descriptor; the last needs the RTP marker bit.
Declaration
public IReadOnlyList<byte[]> Packetize(ReadOnlySpan<byte> frame, int maxPayload = 1200)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | frame | |
| int | maxPayload |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<byte[]> |