src/net/java/sip/communicator/impl/protocol/jabber/CallPeerMediaHandlerJabberImpl.java
/**
     * Creates if necessary, and configures the stream that this
     * <tt>MediaHandler</tt> is using for the <tt>MediaType</tt> matching the
     * one of the <tt>MediaDevice</tt>. This method extends the one already
     * available by adding a stream name, corresponding to a stream's content
     * name.
     *
     * @param streamName the name of the stream as indicated in the XMPP
     * <tt>content</tt> element.
     * @param connector the <tt>MediaConnector</tt> that we'd like to bind the
     * newly created stream to.
     * @param device the <tt>MediaDevice</tt> that we'd like to attach the newly
     * created <tt>MediaStream</tt> to.
     * @param format the <tt>MediaFormat</tt> that we'd like the new
     * <tt>MediaStream</tt> to be set to transmit in.
     * @param target the <tt>MediaStreamTarget</tt> containing the RTP and RTCP
     * address:port couples that the new stream would be sending packets to.
     * @param direction the <tt>MediaDirection</tt> that we'd like the new
     * stream to use (i.e. sendonly, sendrecv, recvonly, or inactive).
     * @param rtpExtensions the list of <tt>RTPExtension</tt>s that should be
     * enabled for this stream.
     * @param masterStream whether the stream to be used as master if secured
     *
     * @return the newly created <tt>MediaStream</tt>.
     *
     * @throws OperationFailedException if creating the stream fails for any
     * reason (like for example accessing the device or setting the format).
     */
Creates if necessary, and configures the stream that this
MediaHandler is using for the MediaType matching the
one of the MediaDevice. This method extends the one already
available by adding a stream name, corresponding to a stream's content
name.

@param streamName the name of the stream as indicated in the XMPP
content element.
@param connector the MediaConnector that we'd like to bind the
newly created stream to.
@param device the MediaDevice that we'd like to attach the newly
created MediaStream to.
@param format the MediaFormat that we'd like the new
MediaStream to be set to transmit in.
@param target the MediaStreamTarget containing the RTP and RTCP
address:port couples that the new stream would be sending packets to.
@param direction the MediaDirection that we'd like the new
stream to use .
@param rtpExtensions the list of RTPExtensions that should be
enabled for this stream.
@param masterStream whether the stream to be used as master if secured

@return the newly created MediaStream.

@throws OperationFailedException if creating the stream fails for any
reason (like for example accessing the device or setting the format).
Creates if necessary and configures the stream that this MediaHandler is using for the MediaType matching the one of the MediaDevice . This method extends the one already available by adding a stream name corresponding to a stream ' s content name . @param streamName the name of the stream as indicated in the XMPP content element . @param connector the MediaConnector that we ' d like to bind the newly created stream to . @param device the MediaDevice that we ' d like to attach the newly created MediaStream to . @param format the MediaFormat that we ' d like the new MediaStream to be set to transmit in . @param target the MediaStreamTarget containing the RTP and RTCP address : port couples that the new stream would be sending packets to . @param direction the MediaDirection that we ' d like the new stream to use . @param rtpExtensions the list of RTPExtensions that should be enabled for this stream . @param masterStream whether the stream to be used as master if secured @return the newly created MediaStream . @throws OperationFailedException if creating the stream fails for any reason ( like for example accessing the device or setting the format ) .
protected MediaStream initStream(String               streamName,
                                     StreamConnector      connector,
                                     MediaDevice          device,
                                     MediaFormat          format,
                                     MediaStreamTarget    target,
                                     MediaDirection       direction,
                                     List<RTPExtension>   rtpExtensions,
                                     boolean              masterStream)
        throws OperationFailedException
    {
        MediaStream stream
            = super.initStream(
                    connector,
                    device,
                    format,
                    target,
                    direction,
                    rtpExtensions,
                    masterStream);
        if (stream != null)
            stream.setName(streamName);
        return stream;
    }
protected MediaStream initStream ( String streamName , StreamConnector connector , MediaDevice device , MediaFormat format , MediaStreamTarget target , MediaDirection direction , List < RTPExtension > rtpExtensions , boolean masterStream ) throws OperationFailedException { MediaStream stream = super . initStream ( connector , device , format , target , direction , rtpExtensions , masterStream ) ; if ( stream != null ) stream . setName ( streamName ) ; return stream ; }
Creates if necessary, and configures the stream that this
 <tt>MediaHandler</tt> is using for the <tt>MediaType</tt> matching the
 one of the <tt>MediaDevice</tt>.
Creates if necessary and configures the stream that this <tt > MediaHandler< / tt > is using for the <tt > MediaType< / tt > matching the one of the <tt > MediaDevice< / tt > .