transform property

RTCRtpTransform? get transform

The transform property of the RTCRtpReceiver object is used to insert a transform stream (TransformStream) running in a worker thread into the receiver pipeline. This allows stream transforms to be applied to encoded video and audio frames as they arrive from the packetizer (before they are played/rendered).

The transform that is to be added is defined using an RTCRtpScriptTransform and its associated Worker. If the transform is set in the peer connection track event handler, the transform stream will receive the first full incoming frame for the track.

Value

A RTCRtpScriptTransform, or null if the receiver has no associated transform stream.

Implementation

external RTCRtpTransform? get transform;
set transform (RTCRtpTransform? value)

Implementation

external set transform(RTCRtpTransform? value);