src/net/java/sip/communicator/impl/protocol/jabber/CallPeerMediaHandlerJabberImpl.java
/**
     * Reinitialize a media content such as video.
     *
     * @param name name of the Jingle content
     * @param content media content
     * @param modify if it correspond to a content-modify for resolution change
     * @throws OperationFailedException if we fail to handle <tt>content</tt>
     * for reasons like failing to initialize media devices or streams.
     * @throws IllegalArgumentException if there's a problem with the syntax or
     * the semantics of <tt>content</tt>. Method is synchronized in order to
     * avoid closing mediaHandler when we are currently in process of
     * initializing, configuring and starting streams and anybody interested
     * in this operation can synchronize to the mediaHandler instance to wait
     * processing to stop (method setState in CallPeer).
     */
Reinitialize a media content such as video.
@param name name of the Jingle content
@param content media content
@param modify if it correspond to a content-modify for resolution change
@throws OperationFailedException if we fail to handle content
for reasons like failing to initialize media devices or streams.
@throws IllegalArgumentException if there's a problem with the syntax or
the semantics of content. Method is synchronized in order to
avoid closing mediaHandler when we are currently in process of
initializing, configuring and starting streams and anybody interested
in this operation can synchronize to the mediaHandler instance to wait
processing to stop (method setState in CallPeer).
Reinitialize a media content such as video . @param name name of the Jingle content @param content media content @param modify if it correspond to a content - modify for resolution change @throws OperationFailedException if we fail to handle content for reasons like failing to initialize media devices or streams . @throws IllegalArgumentException if there ' s a problem with the syntax or the semantics of content . Method is synchronized in order to avoid closing mediaHandler when we are currently in process of initializing configuring and starting streams and anybody interested in this operation can synchronize to the mediaHandler instance to wait processing to stop ( method setState in CallPeer ) .
public void reinitContent(
            String name,
            ContentPacketExtension content,
            boolean modify)
        throws OperationFailedException,
               IllegalArgumentException
    {
        ContentPacketExtension ext = remoteContentMap.get(name);
        if(ext != null)
        {
            if(modify)
            {
                processContent(content, modify, false);
                remoteContentMap.put(name, content);
            }
            else
            {
                ext.setSenders(content.getSenders());
                processContent(ext, modify, false);
                remoteContentMap.put(name, ext);
            }
        }
    }
public void reinitContent ( String name , ContentPacketExtension content , boolean modify ) throws OperationFailedException , IllegalArgumentException { ContentPacketExtension ext = remoteContentMap . get ( name ) ; if ( ext != null ) { if ( modify ) { processContent ( content , modify , false ) ; remoteContentMap . put ( name , content ) ; } else { ext . setSenders ( content . getSenders ( ) ) ; processContent ( ext , modify , false ) ; remoteContentMap . put ( name , ext ) ; } } }
Reinitialize a media content such as video.
Reinitialize a media content such as video .