Creates a new instance for a given conference.
the conference instance
Returns a list of video codecs that are supported by the browser.
media connection type, p2p or jvb.
Changes the codec preference order.
The local video track.
The codec used for encoding the given local video track.
boolean - Returns true if the codec order has been updated, false otherwise.
Returns the current codec preference order for the given connection type.
The media connection type, 'p2p' or 'jvb'.
Returns the preferred screenshare codec for the given connection type.
The media connection type, 'p2p' or 'jvb'.
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.
Optional
mediaSession: JingleSessionPCsession for which the codec selection has to be made.
Updates the aggregate list of the codecs supported by all the visitors in the call and calculates the selected codec if needed.
visitor codecs.
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.