Table of Contents

Class RTCEncodedAudioFrame

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

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

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

Remarks

The interface provides methods and properties to get metadata about the frame, allowing its format and order in the sequence of frames to be determined.
The data property gives access to the encoded frame data as a buffer, which might be encrypted, or otherwise modified by a transform.

-Using WebRTC Encoded Transforms
-TransformStream
-RTCRtpScriptTransformer
-RTCEncodedVideoFrame

See also on MDN

Constructors

RTCEncodedAudioFrame()

public RTCEncodedAudioFrame()

RTCEncodedAudioFrame(RTCEncodedAudioFrame, RTCEncodedAudioFrameOptions)

public RTCEncodedAudioFrame(RTCEncodedAudioFrame originalFrame, RTCEncodedAudioFrameOptions options = null)

Parameters

originalFrame RTCEncodedAudioFrame
options RTCEncodedAudioFrameOptions

Properties

Data

The data property of the RTCEncodedAudioFrame interface returns a buffer containing the data for an encoded frame.

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

Property Value

ArrayBuffer

An ArrayBuffer.

Remarks

Methods

GetMetadata()

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

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

Returns

RTCEncodedAudioFrameMetadata

An object with the following properties:

Remarks

This includes information about the frame, including the audio encoding used, the synchronization source and contributing sources, and the sequence number (for incoming frames).

-Using WebRTC Encoded Transforms

See also on MDN