src/net/java/sip/communicator/impl/neomedia/MediaConfigurationImpl.java
/**
     * Returns a component for encodings configuration for the given
     * <tt>mediaType</tt>
     *
     * @param mediaType Either <tt>MediaType.AUDIO</tt> or
     * <tt>MediaType.VIDEO</tt>
     * @param encodingConfiguration The <tt>EncodingConfiguration</tt> instance
     * to use. If null, it will use the current encoding configuration from
     * the media service.
     * @return The component for encodings configuration.
     */
Returns a component for encodings configuration for the given
mediaType

@param mediaType Either MediaType.AUDIO or
MediaType.VIDEO
@param encodingConfiguration The EncodingConfiguration instance
to use. If null, it will use the current encoding configuration from
the media service.
@return The component for encodings configuration.
Returns a component for encodings configuration for the given mediaType @param mediaType Either MediaType . AUDIO or MediaType . VIDEO @param encodingConfiguration The EncodingConfiguration instance to use . If null it will use the current encoding configuration from the media service . @return The component for encodings configuration .
public Component createEncodingControls(
            MediaType mediaType,
            EncodingConfiguration encodingConfiguration)
    {
        if(encodingConfiguration == null)
        {
            encodingConfiguration
                = mediaService.getCurrentEncodingConfiguration();
        }
        int deviceConfigurationComboBoxModelType;
        switch (mediaType)
        {
        case AUDIO:
            deviceConfigurationComboBoxModelType
                = DeviceConfigurationComboBoxModel.AUDIO;
            break;
        case VIDEO:
            deviceConfigurationComboBoxModelType
                = DeviceConfigurationComboBoxModel.VIDEO;
            break;
        default:
            throw new IllegalArgumentException("mediaType");
        }
        return
            createEncodingControls(
                    deviceConfigurationComboBoxModelType,
                    encodingConfiguration);
    }
public Component createEncodingControls ( MediaType mediaType , EncodingConfiguration encodingConfiguration ) { if ( encodingConfiguration == null ) { encodingConfiguration = mediaService . getCurrentEncodingConfiguration ( ) ; } int deviceConfigurationComboBoxModelType ; switch ( mediaType ) { case AUDIO : deviceConfigurationComboBoxModelType = DeviceConfigurationComboBoxModel . AUDIO ; break ; case VIDEO : deviceConfigurationComboBoxModelType = DeviceConfigurationComboBoxModel . VIDEO ; break ; default : throw new IllegalArgumentException ( "mediaType" ) ; } return createEncodingControls ( deviceConfigurationComboBoxModelType , encodingConfiguration ) ; }
Returns a component for encodings configuration for the given
 <tt>mediaType</tt>
Returns a component for encodings configuration for the given <tt > mediaType< / tt >