docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RTCEncodedFrame

    Represents an encoded RTP frame.

    Inheritance
    object
    RTCEncodedFrame
    RTCEncodedAudioFrame
    RTCEncodedVideoFrame
    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)