public class EncodingConfigurationImpl extends EncodingConfiguration
Modifier and Type | Field and Description |
---|---|
static boolean |
G729
The indicator which determines whether the G.729 codec is enabled.
|
encodingPreferences
Constructor and Description |
---|
EncodingConfigurationImpl()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected int |
compareEncodingPreferences(MediaFormat enc1,
MediaFormat enc2)
Compares the two formats for order.
|
MediaFormat[] |
getAllEncodings(MediaType type)
Returns all the available encodings for a specific MediaType.
|
protected void |
setEncodingPreference(java.lang.String encoding,
double clockRate,
int pref)
Sets pref as the preference associated with encoding.
|
getEnabledEncodings, getEncodingPreferenceKey, getPriority, hasEnabledFormat, loadEncodingConfiguration, loadProperties, loadProperties, setPriority, storeProperties, storeProperties
public static final boolean G729
public EncodingConfigurationImpl()
protected void setEncodingPreference(java.lang.String encoding, double clockRate, int pref)
setEncodingPreference
in class EncodingConfiguration
encoding
- the SDP int of the encoding whose pref we're setting.clockRate
- clock ratepref
- a positive int indicating the preference for that encoding.public MediaFormat[] getAllEncodings(MediaType type)
getAllEncodings
in class EncodingConfiguration
type
- the MediaType we would like to know the available
encodings ofprotected int compareEncodingPreferences(MediaFormat enc1, MediaFormat enc2)
compareEncodingPreferences
in class EncodingConfiguration
enc1
- the first format to compare for preference.enc2
- the second format to compare for preference
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.