Table of Contents

Class RTCEncodedVideoFrame

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The RTCEncodedVideoFrame of the WebRTC API represents an encoded video frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.

[Value("RTCEncodedVideoFrame")]
public class RTCEncodedVideoFrame
Inheritance
RTCEncodedVideoFrame
Inherited Members

Remarks

Constructors

RTCEncodedVideoFrame()

public RTCEncodedVideoFrame()

RTCEncodedVideoFrame(RTCEncodedVideoFrame, RTCEncodedVideoFrameOptions)

The RTCEncodedVideoFrame() constructor creates a new and fully independent RTCEncodedVideoFrame object.

public RTCEncodedVideoFrame(RTCEncodedVideoFrame originalFrame, RTCEncodedVideoFrameOptions options = null)

Parameters

originalFrame RTCEncodedVideoFrame
options RTCEncodedVideoFrameOptions

Remarks

The new object is a deep clone of the original object data and metadata, with any metadata specified in the options parameter overwriting the copied values.

See also on MDN

Properties

Data

The data property of the RTCEncodedVideoFrame interface returns a buffer containing the frame data.

[Value("data")]
public ArrayBuffer Data { get; set; }

Property Value

ArrayBuffer

An ArrayBuffer.

Remarks

Type

The type read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame.

[Value("type")]
public RTCEncodedVideoFrameType Type { get; }

Property Value

RTCEncodedVideoFrameType

The type can have one of the following values:

Remarks

Methods

GetMetadata()

The getMetadata() method of the RTCEncodedVideoFrame interface returns an object containing the metadata associated with the frame.

[Value("getMetadata")]
public RTCEncodedVideoFrameMetadata GetMetadata()

Returns

RTCEncodedVideoFrameMetadata

An object with the following properties:

Remarks

This includes information about the frame, such as its size, video encoding, other frames needed to construct a full image, timestamp, and other information.

-Using WebRTC Encoded Transforms

See also on MDN