public class DesktopSharingProtocolSipImpl
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_SUB_TYPE
The content sub-type of the content supported in NOTIFY requests handled
by OperationSetDesktopSharingSipImpl.
|
static java.lang.String |
EVENT_PACKAGE
The name of the event package supported by
OperationSetDesktopSharingServerSipImpl in SUBSCRIBE and NOTIFY
requests.
|
static int |
REFRESH_MARGIN
The time in seconds before the expiration of a Subscription at
which the OperationSetDesktopSharingServerSipImpl instance
managing it should refresh it.
|
static int |
SUBSCRIPTION_DURATION
The time in seconds after which a Subscription should be expired
by the OperationSetDesktopSharingServerSipImpl instance which
manages it.
|
Constructor and Description |
---|
DesktopSharingProtocolSipImpl() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getKeyPressedXML(int keycode)
Build a remote-info key-press SIP NOTIFY message.
|
static java.lang.String |
getKeyReleasedXML(int keycode)
Build a remote-info key-release SIP NOTIFY message.
|
static java.lang.String |
getKeyTypedXML(int keycode)
Build a remote-info key-typed SIP NOTIFY message.
|
static java.lang.String |
getMouseMovedXML(double x,
double y)
Build a remote-info mouse-move SIP NOTIFY message.
|
static java.lang.String |
getMousePressedXML(int btns)
Build a remote-info mouse-press SIP NOTIFY message.
|
static java.lang.String |
getMouseReleasedXML(int btns)
Build a remote-info mouse-release SIP NOTIFY message.
|
static java.lang.String |
getMouseWheelXML(int notch)
Build a remote-info mouse-wheel SIP NOTIFY message.
|
static java.util.List<java.awt.event.ComponentEvent> |
parse(org.w3c.dom.Element root,
java.awt.Dimension size,
java.awt.Point origin)
Parses an XML element and returns a list of all MouseEvent
and KeyEvent found.
|
public static final java.lang.String EVENT_PACKAGE
public static final int REFRESH_MARGIN
public static final int SUBSCRIPTION_DURATION
public static final java.lang.String CONTENT_SUB_TYPE
public static java.lang.String getKeyPressedXML(int keycode)
keycode
- keyboard's codepublic static java.lang.String getKeyReleasedXML(int keycode)
keycode
- keyboard's codepublic static java.lang.String getKeyTypedXML(int keycode)
keycode
- keyboard's codepublic static java.lang.String getMousePressedXML(int btns)
btns
- button maskpublic static java.lang.String getMouseReleasedXML(int btns)
btns
- button maskpublic static java.lang.String getMouseMovedXML(double x, double y)
x
- x position of the mousey
- y position of the mousepublic static java.lang.String getMouseWheelXML(int notch)
notch
- wheel notchpublic static java.util.List<java.awt.event.ComponentEvent> parse(org.w3c.dom.Element root, java.awt.Dimension size, java.awt.Point origin)
root
- XML root elementsize
- size of the video (used to have right (x,y) for MouseMoved
and MouseDraggedorigin
- origin coordinate (upper left corner)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.