src/net/java/sip/communicator/impl/protocol/sip/OperationSetDesktopSharingServerSipImpl.java
/**
     * Create a new video call and invite the specified CallPeer to it.
     *
     * @param uri the address of the callee that we should invite to a new
     * call.
     * @param device <tt>MediaDevice</tt> to use for this call
     * @return CallPeer the CallPeer that will represented by the
     * specified uri. All following state change events will be delivered
     * through that call peer. The Call that this peer is a member
     * of could be retrieved from the CallParticipatn instance with the use
     * of the corresponding method.
     * @throws OperationFailedException with the corresponding code if we fail
     * to create the video call.
     * @throws ParseException if <tt>callee</tt> is not a valid sip address
     * string.
     */
Create a new video call and invite the specified CallPeer to it.
@param uri the address of the callee that we should invite to a new
call.
@param device MediaDevice to use for this call
@return CallPeer the CallPeer that will represented by the
specified uri. All following state change events will be delivered
through that call peer. The Call that this peer is a member
of could be retrieved from the CallParticipatn instance with the use
of the corresponding method.
@throws OperationFailedException with the corresponding code if we fail
to create the video call.
@throws ParseException if callee is not a valid sip address
string.
Create a new video call and invite the specified CallPeer to it . @param uri the address of the callee that we should invite to a new call . @param device MediaDevice to use for this call @return CallPeer the CallPeer that will represented by the specified uri . All following state change events will be delivered through that call peer . The Call that this peer is a member of could be retrieved from the CallParticipatn instance with the use of the corresponding method . @throws OperationFailedException with the corresponding code if we fail to create the video call . @throws ParseException if callee is not a valid sip address string .
@Override
    public Call createVideoCall(String uri, MediaDevice device)
        throws OperationFailedException, ParseException
    {
        CallSipImpl call = (CallSipImpl)super.createVideoCall(uri, device);
        CallPeerSipImpl callPeer = call.getCallPeers().next();
        callPeer.addMethodProcessorListener(this);
        callPeer.addCallPeerListener(callPeerListener);
        size = (((VideoMediaFormat)call.getDefaultDevice(MediaType.VIDEO).
                getFormat()).getSize());
        origin = getOriginForMediaDevice(device);
        return call;
    }
@ Override public Call createVideoCall ( String uri , MediaDevice device ) throws OperationFailedException , ParseException { CallSipImpl call = ( CallSipImpl ) super . createVideoCall ( uri , device ) ; CallPeerSipImpl callPeer = call . getCallPeers ( ) . next ( ) ; callPeer . addMethodProcessorListener ( this ) ; callPeer . addCallPeerListener ( callPeerListener ) ; size = ( ( ( VideoMediaFormat ) call . getDefaultDevice ( MediaType . VIDEO ) . getFormat ( ) ) . getSize ( ) ) ; origin = getOriginForMediaDevice ( device ) ; return call ; }
Create a new video call and invite the specified CallPeer to it.
Create a new video call and invite the specified CallPeer to it .