src/net/java/sip/communicator/impl/protocol/jabber/OperationSetDesktopSharingClientJabberImpl.java
/**
     * Send a mouse/keyboard/videoPanelSize notification.
     *
     * @param callPeer <tt>CallPeer</tt> that will be notified
     * @param payload  The packet payload containing the
     * key/mouse/videoPanelSize event to send to remote peer
     */
Send a mouse/keyboard/videoPanelSize notification.
@param callPeer CallPeer that will be notified
@param payload  The packet payload containing the
key/mouse/videoPanelSize event to send to remote peer
Send a mouse / keyboard / videoPanelSize notification . @param callPeer CallPeer that will be notified @param payload The packet payload containing the key / mouse / videoPanelSize event to send to remote peer
private void sendRemoteControlExtension(
            CallPeer callPeer,
            RemoteControlExtension payload)
    {
        DiscoverInfo discoverInfo
            = ((CallPeerJabberImpl) callPeer).getDiscoveryInfo();
        if(this.parentProvider.getDiscoveryManager()
                .includesFeature(InputEvtIQ.NAMESPACE_CLIENT)
                && discoverInfo != null
                && discoverInfo.containsFeature(InputEvtIQ.NAMESPACE_SERVER))
        {
            InputEvtIQ inputIQ = new InputEvtIQ();
            inputIQ.setAction(InputEvtAction.NOTIFY);
            inputIQ.setType(IQ.Type.set);
            inputIQ.setFrom(parentProvider.getOurJID());
            inputIQ.setTo(((CallPeerJabberImpl) callPeer).getAddressAsJid());
            inputIQ.addRemoteControl(payload);
            try
            {
                parentProvider.getConnection().sendStanza(inputIQ);
            }
            catch (NotConnectedException | InterruptedException e)
            {
                logger.error("Could not send remote control event", e);
            }
        }
    }
private void sendRemoteControlExtension ( CallPeer callPeer , RemoteControlExtension payload ) { DiscoverInfo discoverInfo = ( ( CallPeerJabberImpl ) callPeer ) . getDiscoveryInfo ( ) ; if ( this . parentProvider . getDiscoveryManager ( ) . includesFeature ( InputEvtIQ . NAMESPACE_CLIENT ) && discoverInfo != null && discoverInfo . containsFeature ( InputEvtIQ . NAMESPACE_SERVER ) ) { InputEvtIQ inputIQ = new InputEvtIQ ( ) ; inputIQ . setAction ( InputEvtAction . NOTIFY ) ; inputIQ . setType ( IQ . Type . set ) ; inputIQ . setFrom ( parentProvider . getOurJID ( ) ) ; inputIQ . setTo ( ( ( CallPeerJabberImpl ) callPeer ) . getAddressAsJid ( ) ) ; inputIQ . addRemoteControl ( payload ) ; try { parentProvider . getConnection ( ) . sendStanza ( inputIQ ) ; } catch ( NotConnectedException | InterruptedException e ) { logger . error ( "Could not send remote control event" , e ) ; } } }
Send a mouse/keyboard/videoPanelSize notification.
Send a mouse / keyboard / videoPanelSize notification .