lib-jitsi-meet
    Preparing search index...

    Context encapsulating the cryptography bits required for E2EE. This uses the WebRTC Insertable Streams API which is explained in https://github.com/alvestrand/webrtc-media-streams/blob/master/explainer.md that provides access to the encoded frames and allows them to be transformed.

    The encoded frame format is explained below in the _encodeFunction method. High level design goals were:

    • do not require changes to existing SFUs and retain (VP8) metadata.
    • allow the SFU to rewrite SSRCs, timestamp, pictureId.
    • allow for the key to be rotated frequently.
    Index

    Constructors

    Properties

    _worker: Worker

    Methods

    • Cleans up all state associated with the given participant. This is needed when a participant leaves the current conference.

      Parameters

      • participantId: string

        The participant that just left.

      Returns void

    • Cleans up all state associated with all participants in the conference. This is needed when disabling e2ee.

      Returns void

    • Handles the given {@code RTCRtpReceiver} by creating a {@code TransformStream} which will inject a frame decoder.

      Parameters

      • receiver: RTCRtpReceiver

        The receiver which will get the decoding function injected.

      • kind: string

        The kind of track this receiver belongs to.

      • participantId: string

        The participant id that this receiver belongs to.

      Returns void

    • Handles the given {@code RTCRtpSender} by creating a {@code TransformStream} which will inject a frame encoder.

      Parameters

      • sender: RTCRtpSender

        The sender which will get the encoding function injected.

      • kind: string

        The kind of track this sender belongs to.

      • participantId: string

        The participant id that this sender belongs to.

      Returns void

    • Set the E2EE enabled state.

      Parameters

      • enabled: boolean

        whether E2EE is enabled or not.

      Returns void

    • Set the E2EE key for the specified participant.

      Parameters

      • participantId: string

        the ID of the participant who's key we are setting.

      • key: boolean | Uint8Array<ArrayBufferLike>

        they key for the given participant.

      • keyIndex: number

        the key index.

      Returns void