src/net/java/sip/communicator/impl/protocol/jabber/CallPeerMediaHandlerJabberImpl.java
/**
     * Generates an Jingle {@link ContentPacketExtension} for the specified
     * {@link MediaFormat} list, direction and RTP extensions taking account
     * the local streaming preference for the corresponding media type.
     *
     * @param supportedFormats the list of <tt>MediaFormats</tt> that we'd
     * like to advertise.
     * @param direction the <tt>MediaDirection</tt> that we'd like to establish
     * the stream in.
     * @param supportedExtensions the list of <tt>RTPExtension</tt>s that we'd
     * like to advertise in the <tt>MediaDescription</tt>.
     *
     * @return a newly created {@link ContentPacketExtension} representing
     * streams that we'd be able to handle.
     */
Generates an Jingle  ContentPacketExtension for the specified
MediaFormat list, direction and RTP extensions taking account
the local streaming preference for the corresponding media type.

@param supportedFormats the list of MediaFormats that we'd
like to advertise.
@param direction the MediaDirection that we'd like to establish
the stream in.
@param supportedExtensions the list of RTPExtensions that we'd
like to advertise in the MediaDescription.

@return a newly created  ContentPacketExtension representing
streams that we'd be able to handle.
Generates an Jingle ContentPacketExtension for the specified MediaFormat list direction and RTP extensions taking account the local streaming preference for the corresponding media type . @param supportedFormats the list of MediaFormats that we ' d like to advertise . @param direction the MediaDirection that we ' d like to establish the stream in . @param supportedExtensions the list of RTPExtensions that we ' d like to advertise in the MediaDescription . @return a newly created ContentPacketExtension representing streams that we ' d be able to handle .
private ContentPacketExtension createContentForOffer(
                                        List<MediaFormat>  supportedFormats,
                                        MediaDirection     direction,
                                        List<RTPExtension> supportedExtensions)
    {
        ContentPacketExtension content
            = JingleUtils.createDescription(
                    ContentPacketExtension.CreatorEnum.initiator,
                    supportedFormats.get(0).getMediaType().toString(),
                    JingleUtils.getSenders(direction, !getPeer().isInitiator()),
                    supportedFormats,
                    supportedExtensions,
                    getDynamicPayloadTypes(),
                    getRtpExtensionsRegistry());
        this.localContentMap.put(content.getName(), content);
        return content;
    }
private ContentPacketExtension createContentForOffer ( List < MediaFormat > supportedFormats , MediaDirection direction , List < RTPExtension > supportedExtensions ) { ContentPacketExtension content = JingleUtils . createDescription ( ContentPacketExtension . CreatorEnum . initiator , supportedFormats . get ( 0 ) . getMediaType ( ) . toString ( ) , JingleUtils . getSenders ( direction , ! getPeer ( ) . isInitiator ( ) ) , supportedFormats , supportedExtensions , getDynamicPayloadTypes ( ) , getRtpExtensionsRegistry ( ) ) ; this . localContentMap . put ( content . getName ( ) , content ) ; return content ; }
Generates an Jingle {@link ContentPacketExtension} for the specified
 {@link MediaFormat} list, direction and RTP extensions taking account
 the local streaming preference for the corresponding media type.
Generates an Jingle { @link ContentPacketExtension } for the specified { @link MediaFormat } list direction and RTP extensions taking account the local streaming preference for the corresponding media type .