Class RTCRtpScriptTransform
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The RTCRtpScriptTransform interface of the WebRTC API is used to insert a WebRTC Encoded Transform (a TransformStream running in a worker thread) into the WebRTC sender and receiver pipelines.
[Value("RTCRtpScriptTransform")]
public class RTCRtpScriptTransform
- Inheritance
-
RTCRtpScriptTransform
- Inherited Members
Remarks
Constructors
RTCRtpScriptTransform()
public RTCRtpScriptTransform()
RTCRtpScriptTransform(Worker, dynamic, List<Object>)
The RTCRtpScriptTransform() constructor creates a new RTCRtpScriptTransform object.
public RTCRtpScriptTransform(Worker worker, dynamic options = null, List<Object> transfer = null)
Parameters
Remarks
Constructing the RTCRtpScriptTransform creates a counterpart RTCRtpScriptTransformer in the specified worker, along with passed options (if any). Objects in the third parameter to the constructor are transferred.
The DedicatedWorkerGlobalScope.Rtctransform event is then fired at the worker global object.
Worker code can use the event.transformer property to get the counterpart RTCRtpScriptTransformer, and event.transformer.options is used to get the options.
Note that the options are primarily used to inform the worker whether the transformer is processing incoming or outgoing frames, so that it can apply an appropriate transform.