src/net/java/sip/communicator/impl/protocol/jabber/CallPeerMediaHandlerJabberImpl.java
/**
     * Creates a {@link ContentPacketExtension} for a particular stream.
     *
     * @param mediaType <tt>MediaType</tt> of the content
     * @return a {@link ContentPacketExtension}
     * @throws OperationFailedException if we fail to create the descriptions
     * for reasons like - problems with device interaction, allocating ports,
     * etc.
     */
Creates a  ContentPacketExtension for a particular stream.
@param mediaType MediaType of the content
@return a  ContentPacketExtension
@throws OperationFailedException if we fail to create the descriptions
for reasons like - problems with device interaction, allocating ports,
etc.
Creates a ContentPacketExtension for a particular stream . @param mediaType MediaType of the content @return a ContentPacketExtension @throws OperationFailedException if we fail to create the descriptions for reasons like - problems with device interaction allocating ports etc .
public ContentPacketExtension createContentForMedia(MediaType mediaType)
        throws OperationFailedException
    {
        MediaDevice dev = getDefaultDevice(mediaType);
        if(isDeviceActive(dev))
            return createContent(dev);
        return null;
    }
public ContentPacketExtension createContentForMedia ( MediaType mediaType ) throws OperationFailedException { MediaDevice dev = getDefaultDevice ( mediaType ) ; if ( isDeviceActive ( dev ) ) return createContent ( dev ) ; return null ; }
Creates a {@link ContentPacketExtension} for a particular stream.
Creates a { @link ContentPacketExtension } for a particular stream .