src/net/java/sip/communicator/impl/protocol/jabber/CallPeerMediaHandlerJabberImpl.java
/**
     * Creates a <tt>List</tt> containing the {@link ContentPacketExtension}s of
     * the streams of a specific <tt>MediaType</tt> that this handler is
     * prepared to initiate depending on available <tt>MediaDevice</tt>s and
     * local on-hold and video transmission preferences.
     *
     * @param mediaType <tt>MediaType</tt> of the content
     * @return a {@link List} containing the {@link ContentPacketExtension}s of
     * streams that this handler is prepared to initiate.
     *
     * @throws OperationFailedException if we fail to create the descriptions
     * for reasons like - problems with device interaction, allocating ports,
     * etc.
     */
Creates a List containing the  ContentPacketExtensions of
the streams of a specific MediaType that this handler is
prepared to initiate depending on available MediaDevices and
local on-hold and video transmission preferences.

@param mediaType MediaType of the content
@return a  List containing the  ContentPacketExtensions of
streams that this handler is prepared to initiate.

@throws OperationFailedException if we fail to create the descriptions
for reasons like - problems with device interaction, allocating ports,
etc.
Creates a List containing the ContentPacketExtensions of the streams of a specific MediaType that this handler is prepared to initiate depending on available MediaDevices and local on - hold and video transmission preferences . @param mediaType MediaType of the content @return a List containing the ContentPacketExtensions of streams that this handler is prepared to initiate . @throws OperationFailedException if we fail to create the descriptions for reasons like - problems with device interaction allocating ports etc .
public List<ContentPacketExtension> createContentList(MediaType mediaType)
        throws OperationFailedException
    {
        MediaDevice dev = getDefaultDevice(mediaType);
        List<ContentPacketExtension> mediaDescs
            = new ArrayList<ContentPacketExtension>();
        if (isDeviceActive(dev))
        {
            ContentPacketExtension content = createContent(dev);
            if (content != null)
                mediaDescs.add(content);
        }
        if (mediaDescs.isEmpty())
        {
            ProtocolProviderServiceJabberImpl.throwOperationFailedException(
                    "We couldn't find any active Audio/Video devices and "
                        + "couldn't create a call",
                    OperationFailedException.GENERAL_ERROR,
                    null,
                    logger);
        }
        return harvestCandidates(null, mediaDescs, null);
    }
public List < ContentPacketExtension > createContentList ( MediaType mediaType ) throws OperationFailedException { MediaDevice dev = getDefaultDevice ( mediaType ) ; List < ContentPacketExtension > mediaDescs = new ArrayList < ContentPacketExtension > ( ) ; if ( isDeviceActive ( dev ) ) { ContentPacketExtension content = createContent ( dev ) ; if ( content != null ) mediaDescs . add ( content ) ; } if ( mediaDescs . isEmpty ( ) ) { ProtocolProviderServiceJabberImpl . throwOperationFailedException ( "We couldn't find any active Audio/Video devices and " + "couldn't create a call" , OperationFailedException . GENERAL_ERROR , null , logger ) ; } return harvestCandidates ( null , mediaDescs , null ) ; }
Creates a <tt>List</tt> containing the {@link ContentPacketExtension}s of
 the streams of a specific <tt>MediaType</tt> that this handler is
 prepared to initiate depending on available <tt>MediaDevice</tt>s and
 local on-hold and video transmission preferences.
Creates a <tt > List< / tt > containing the { @link ContentPacketExtension } s of the streams of a specific <tt > MediaType< / tt > that this handler is prepared to initiate depending on available <tt > MediaDevice< / tt > s and local on - hold and video transmission preferences .
// Fail if no media is described (e.g. all devices are inactive). // Describe the transport(s).