Class RTCEncodedFrame
Represents an encoded RTP frame.
Namespace: Unity.WebRTC
Assembly: Unity.WebRTC.dll
Syntax
public class RTCEncodedFrame
Properties
Ssrc
SSRC identifier for the frame.
Declaration
public uint Ssrc { get; }
Property Value
Type | Description |
---|---|
uint |
Timestamp
Timestamp of the frame.
Declaration
public uint Timestamp { get; }
Property Value
Type | Description |
---|---|
uint |
Methods
GetData()
Gets the encoded frame data as a read-only array.
Declaration
public NativeArray<byte>.ReadOnly GetData()
Returns
Type | Description |
---|---|
NativeArray<byte>.ReadOnly | Read-only byte array of frame data. |
SetData(ReadOnly)
Sets the frame data from a read-only array.
Declaration
public void SetData(NativeArray<byte>.ReadOnly data)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<byte>.ReadOnly | data | Read-only byte array. |
SetData(ReadOnly, int, int)
Sets a portion of the frame data.
Declaration
public void SetData(NativeArray<byte>.ReadOnly data, int startIndex, int length)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<byte>.ReadOnly | data | Read-only byte array. |
int | startIndex | Start index in array. |
int | length | Number of bytes to set. |
SetData(NativeSlice<byte>)
Sets the frame data from a native slice.
Declaration
public void SetData(NativeSlice<byte> data)
Parameters
Type | Name | Description |
---|---|---|
NativeSlice<byte> | data | Native slice of bytes. |