public class OperationSetDesktopSharingServerJabberImpl extends OperationSetDesktopStreamingJabberImpl implements OperationSetDesktopSharingServer, RegistrationStateChangeListener, org.jivesoftware.smack.PacketListener, org.jivesoftware.smack.filter.PacketFilter
origin, size
basicTelephony, parentProvider
LOCAL_VIDEO_STREAMING
Constructor and Description |
---|
OperationSetDesktopSharingServerJabberImpl(OperationSetBasicTelephonyJabberImpl basicTelephony)
Initializes a new OperationSetDesktopSharingJabberImpl instance
which builds upon the telephony-related functionality of a specific
OperationSetBasicTelephonyJabberImpl.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(org.jivesoftware.smack.packet.Packet packet)
Tests whether or not the specified packet should be handled by this
operation set.
|
protected Call |
createOutgoingVideoCall(java.lang.String calleeAddress)
Check if the remote part supports Jingle video.
|
protected Call |
createOutgoingVideoCall(java.lang.String calleeAddress,
org.jitsi.service.neomedia.device.MediaDevice videoDevice)
Check if the remote part supports Jingle video.
|
Call |
createVideoCall(Contact callee,
org.jitsi.service.neomedia.device.MediaDevice device)
Create a new video call and invite the specified CallPeer to it.
|
Call |
createVideoCall(java.lang.String uri,
org.jitsi.service.neomedia.device.MediaDevice device)
Create a new video call and invite the specified CallPeer to it.
|
void |
disableRemoteControl(CallPeer callPeer)
Disable desktop remote control.
|
void |
enableRemoteControl(CallPeer callPeer)
Enable desktop remote control.
|
boolean |
isRemoteControlAvailable(CallPeer callPeer)
Tells if the peer provided can be remotely controlled by this peer:
- The server is able to grant/revoke remote access to its desktop.
|
void |
modifyRemoteControl(CallPeer callPeer,
boolean enables)
Sends IQ InputEvent START or STOP in order to enable/disable the remote
peer to remotely control our PC.
|
void |
processComponentEvent(java.awt.event.ComponentEvent event)
Process an ComponentEvent received from remote peer.
|
void |
processKeyboardEvent(java.awt.event.KeyEvent event)
Process keyboard notification received from remote peer.
|
void |
processMouseEvent(java.awt.event.MouseEvent event)
Process mouse notification received from remote peer.
|
void |
processPacket(org.jivesoftware.smack.packet.Packet packet)
Handles incoming inputevt packets and passes them to the corresponding
method based on their action.
|
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
Implementation of method registrationStateChange from
interface RegistrationStateChangeListener for setting up (or down)
our InputEvtManager when an XMPPConnection is available
|
static void |
registrationStateChanged(RegistrationStateChangeEvent evt,
org.jivesoftware.smack.PacketListener packetListener,
org.jivesoftware.smack.filter.PacketFilter packetFilter,
org.jivesoftware.smack.Connection connection)
Implementation of method registrationStateChange from
interface RegistrationStateChangeListener for setting up (or down)
our InputEvtManager when an XMPPConnection is available
|
void |
setLocalVideoAllowed(Call call,
org.jitsi.service.neomedia.device.MediaDevice mediaDevice,
boolean allowed)
Sets the indicator which determines whether the streaming of local video
in a specific Call is allowed.
|
createVideoCall, createVideoCall, getMediaUseCase, getOriginForMediaDevice, isLocalVideoAllowed, isPartialStreaming, movePartialDesktopStreaming, setLocalVideoAllowed
answerVideoCallPeer, getQualityControl
addPropertyChangeListener, addVideoListener, createVideoCall, createVideoCall, getConferenceMember, getLocalVisualComponent, getVisualComponent, getVisualComponents, isLocalVideoStreaming, removePropertyChangeListener, removeVideoListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isPartialStreaming, movePartialDesktopStreaming
addPropertyChangeListener, addVideoListener, answerVideoCallPeer, createVideoCall, createVideoCall, createVideoCall, createVideoCall, getConferenceMember, getLocalVisualComponent, getQualityControl, getVisualComponent, getVisualComponents, isLocalVideoAllowed, isLocalVideoStreaming, removePropertyChangeListener, removeVideoListener, setLocalVideoAllowed
public OperationSetDesktopSharingServerJabberImpl(OperationSetBasicTelephonyJabberImpl basicTelephony)
basicTelephony
- the OperationSetBasicTelephonyJabberImpl
the new extension should build uponpublic Call createVideoCall(java.lang.String uri, org.jitsi.service.neomedia.device.MediaDevice device) throws OperationFailedException, java.text.ParseException
createVideoCall
in interface OperationSetDesktopStreaming
createVideoCall
in class OperationSetDesktopStreamingJabberImpl
uri
- the address of the callee that we should invite to a new
call.device
- video device that will be used to stream desktop.OperationFailedException
- with the corresponding code if we fail
to create the video call.java.text.ParseException
- if callee is not a valid Jabber address
string.public Call createVideoCall(Contact callee, org.jitsi.service.neomedia.device.MediaDevice device) throws OperationFailedException
createVideoCall
in interface OperationSetDesktopStreaming
createVideoCall
in class OperationSetDesktopStreamingJabberImpl
callee
- the address of the callee that we should invite to a new
call.device
- video device that will be used to stream desktop.OperationFailedException
- with the corresponding code if we fail
to create the video call.protected Call createOutgoingVideoCall(java.lang.String calleeAddress) throws OperationFailedException
createOutgoingVideoCall
in class OperationSetVideoTelephonyJabberImpl
calleeAddress
- Contact addressOperationFailedException
- with the corresponding code if we fail
to create the video call.protected Call createOutgoingVideoCall(java.lang.String calleeAddress, org.jitsi.service.neomedia.device.MediaDevice videoDevice) throws OperationFailedException
createOutgoingVideoCall
in class OperationSetDesktopStreamingJabberImpl
calleeAddress
- Contact addressvideoDevice
- specific video device to use (null to use default
device)OperationFailedException
- with the corresponding code if we fail
to create the video call.public void setLocalVideoAllowed(Call call, org.jitsi.service.neomedia.device.MediaDevice mediaDevice, boolean allowed) throws OperationFailedException
setLocalVideoAllowed
in interface OperationSetDesktopStreaming
setLocalVideoAllowed
in class OperationSetDesktopStreamingJabberImpl
call
- the Call to allow/disallow the streaming of local
video formediaDevice
- the media device to use for the desktop streamingallowed
- true to allow the streaming of local video for
the specified Call; false to disallow itOperationFailedException
- if initializing local video fails.public void enableRemoteControl(CallPeer callPeer)
enableRemoteControl
in interface OperationSetDesktopSharingServer
callPeer
- call peer that will take control on local computerpublic void disableRemoteControl(CallPeer callPeer)
disableRemoteControl
in interface OperationSetDesktopSharingServer
callPeer
- call peer that will stop controlling on local computerpublic void registrationStateChanged(RegistrationStateChangeEvent evt)
registrationStateChanged
in interface RegistrationStateChangeListener
evt
- the event receivedpublic static void registrationStateChanged(RegistrationStateChangeEvent evt, org.jivesoftware.smack.PacketListener packetListener, org.jivesoftware.smack.filter.PacketFilter packetFilter, org.jivesoftware.smack.Connection connection)
evt
- the event receivedpacketListener
- the packet listener for InputEvtIQ of this
connection. (OperationSetDesktopSharingServerJabberImpl or
OperationSetDesktopSharingClientJabberImpl).packetFilter
- the packet filter for InputEvtIQ of this connection.connection
- The XMPP connection.public void processPacket(org.jivesoftware.smack.packet.Packet packet)
processPacket
in interface org.jivesoftware.smack.PacketListener
packet
- the packet to process.public boolean accept(org.jivesoftware.smack.packet.Packet packet)
accept
in interface org.jivesoftware.smack.filter.PacketFilter
packet
- the packet to test.public void processComponentEvent(java.awt.event.ComponentEvent event)
event
- ComponentEvent that will be regenerated on local
computerpublic void processKeyboardEvent(java.awt.event.KeyEvent event)
processKeyboardEvent
in interface OperationSetDesktopSharingServer
event
- KeyboardEvent that will be regenerated on local
computerpublic void processMouseEvent(java.awt.event.MouseEvent event)
processMouseEvent
in interface OperationSetDesktopSharingServer
event
- MouseEvent that will be regenerated on local
computerpublic void modifyRemoteControl(CallPeer callPeer, boolean enables)
callPeer
- call peer that will stop controlling on local computer.enables
- True to enable remote peer to gain remote control on our
PC. False Otherwise.public boolean isRemoteControlAvailable(CallPeer callPeer)
isRemoteControlAvailable
in interface OperationSetDesktopSharingServer
callPeer
- The call peer which may remotely control the shared
desktop.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.