Class Vp8EncodedFrame
A VP8 frame put together from RTP packets: its RTP timestamp, whether it is a keyframe, and the frame as the decoder takes it.
Implements
Inherited Members
Namespace: Uniform.Matrix.WebRtc.Rtp
Assembly: Uniform.Matrix.WebRtc.dll
Syntax
public sealed record Vp8EncodedFrame : IEquatable<Vp8EncodedFrame>
Constructors
| Edit this page View SourceVp8EncodedFrame(uint, bool, byte[], int, uint)
A VP8 frame put together from RTP packets: its RTP timestamp, whether it is a keyframe, and the frame as the decoder takes it.
Declaration
public Vp8EncodedFrame(uint Timestamp, bool IsKeyframe, byte[] Data, int Rotation = 0, uint Ssrc = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | Timestamp | RTP timestamp, in the 90 kHz video clock. |
| bool | IsKeyframe | Whether the frame decodes on its own. |
| byte[] | Data | The VP8 frame. |
| int | Rotation | Clockwise rotation in degrees that shows the picture upright, 0, 90, 180 or 270, from the sender's video orientation. |
| uint | Ssrc | SSRC of the stream the frame came in, e.g. to tell an SFU's streams apart. |
Properties
| Edit this page View SourceData
The VP8 frame.
Declaration
public byte[] Data { get; init; }
Property Value
| Type | Description |
|---|---|
| byte[] |
IsKeyframe
Whether the frame decodes on its own.
Declaration
public bool IsKeyframe { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Rotation
Clockwise rotation in degrees that shows the picture upright, 0, 90, 180 or 270, from the sender's video orientation.
Declaration
public int Rotation { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Ssrc
SSRC of the stream the frame came in, e.g. to tell an SFU's streams apart.
Declaration
public uint Ssrc { get; init; }
Property Value
| Type | Description |
|---|---|
| uint |
Timestamp
RTP timestamp, in the 90 kHz video clock.
Declaration
public uint Timestamp { get; init; }
Property Value
| Type | Description |
|---|---|
| uint |