• Local side of the API: Creates a new script transform, and attaches it to the passed RTP sender or received.

    Make sure to pass encodedInsertableStreams: true in the configuration when creating the RTCPeerConnection.

    See module description for detailed instructions.

    Type Parameters

    • O = unknown

    Parameters

    • rtpProcessor: RTCRtpReceiver | RTCRtpSender

      part of the RTP transceiver to attach the transform at (either the RTPRtcSender, or the RTPRtcReceiver).

    • worker: Worker

      worker where processing will take place; this worker must have the worker service started, and will have its callback invoked with the created transformer (see module description for requirements). the same worker can be used for multiple script transforms.

    • options: AttachRtpScriptTransformOptions<O> = {}

      attachment options

    Returns void

Generated using TypeDoc