lib-jitsi-meet
    Preparing search index...

    This class handles the codec selection mechanism for the conference based on the config.js settings. The preferred codec is selected based on the settings and the list of codecs supported by the browser. The preferred codec is published in presence which is then used by the other endpoints in the conference to pick a supported codec at join time and when the call transitions between p2p and jvb connections.

    Index

    Constructors

    Methods

    • Returns a list of video codecs that are supported by the browser.

      Parameters

      • connectionType: string

        media connection type, p2p or jvb.

      Returns string[]

    • Changes the codec preference order.

      Parameters

      • localTrack: JitsiLocalTrack

        The local video track.

      • codec: string

        The codec used for encoding the given local video track.

      Returns boolean

      boolean - Returns true if the codec order has been updated, false otherwise.

    • Returns the current codec preference order for the given connection type.

      Parameters

      • connectionType: string

        The media connection type, 'p2p' or 'jvb'.

      Returns string[]

    • Returns the preferred screenshare codec for the given connection type.

      Parameters

      • connectionType: string

        The media connection type, 'p2p' or 'jvb'.

      Returns string

      CodecMimeType

    • Sets the codec on the media session based on the codec preference order configured in config.js and the supported codecs published by the remote participants in their presence.

      Parameters

      • OptionalmediaSession: JingleSessionPC

        session for which the codec selection has to be made.

      Returns void

    • Updates the aggregate list of the codecs supported by all the visitors in the call and calculates the selected codec if needed.

      Parameters

      • codecList: string[]

        visitor codecs.

      Returns void