Class EncodingConfigurationImpl

    • Field Detail

      • G729

        public static final boolean G729
        The indicator which determines whether the G.729 codec is enabled. WARNING: The use of G.729 may require a license fee and/or royalty fee in some countries and is licensed by SIPRO Lab Telecom.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EncodingConfigurationImpl

        public EncodingConfigurationImpl()
        Constructor. Loads the default preferences.
    • Method Detail

      • setEncodingPreference

        protected void setEncodingPreference​(String encoding,
                                             double clockRate,
                                             int pref)
        Sets pref as the preference associated with encoding. Use this method for both audio and video encodings and don't worry if preferences are equal since we rarely need to compare prefs of video encodings to those of audio encodings.
        Specified by:
        setEncodingPreference in class EncodingConfiguration
        Parameters:
        encoding - the SDP int of the encoding whose pref we're setting.
        clockRate - clock rate
        pref - a positive int indicating the preference for that encoding.
      • getAllEncodings

        public MediaFormat[] getAllEncodings​(org.jitsi.utils.MediaType type)
        Returns all the available encodings for a specific MediaType. This includes disabled ones (ones with priority 0).
        Specified by:
        getAllEncodings in class EncodingConfiguration
        Parameters:
        type - the MediaType we would like to know the available encodings of
        Returns:
        array of MediaFormat supported for the MediaType
      • compareEncodingPreferences

        protected int compareEncodingPreferences​(MediaFormat enc1,
                                                 MediaFormat enc2)
        Compares the two formats for order. Returns a negative integer, zero, or a positive integer as the first format has been assigned a preference higher, equal to, or greater than the one of the second.
        Specified by:
        compareEncodingPreferences in class EncodingConfiguration
        Parameters:
        enc1 - the first format to compare for preference.
        enc2 - the second format to compare for preference
        Returns:
        a negative integer, zero, or a positive integer as the first format has been assigned a preference higher, equal to, or greater than the one of the second