public class OperationSetDesktopStreamingSipImpl extends OperationSetVideoTelephonySipImpl implements OperationSetDesktopStreaming
Modifier and Type | Field and Description |
---|---|
protected java.awt.Point |
origin
Origin (x, y) of the zone streamed.
|
protected java.awt.Dimension |
size
Dimension of the local desktop streamed.
|
basicTelephony, parentProvider
LOCAL_VIDEO_STREAMING
Constructor and Description |
---|
OperationSetDesktopStreamingSipImpl(OperationSetBasicTelephonySipImpl basicTelephony)
Initializes a new OperationSetDesktopStreamingSipImpl instance
which builds upon the telephony-related functionality of a specific
OperationSetBasicTelephonySipImpl.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDesktopShareHeader(javax.sip.message.Message message)
A place where we can handle any headers we need for requests
and responses.
|
Call |
createVideoCall(Contact callee)
Create a new video call and invite the specified CallPeer to it.
|
Call |
createVideoCall(Contact callee,
org.jitsi.service.neomedia.device.MediaDevice mediaDevice)
Create a new video call and invite the specified CallPeer to it.
|
Call |
createVideoCall(java.lang.String uri)
Create a new video call and invite the specified CallPeer to it.
|
Call |
createVideoCall(java.lang.String uri,
org.jitsi.service.neomedia.device.MediaDevice mediaDevice)
Create a new video call and invite the specified CallPeer to it.
|
org.jitsi.service.neomedia.MediaUseCase |
getMediaUseCase()
Get the MediaUseCase of a desktop streaming operation set.
|
java.awt.Point |
getOrigin()
Get origin of streamed zone.
|
protected static java.awt.Point |
getOriginForMediaDevice(org.jitsi.service.neomedia.device.MediaDevice device)
Get origin of the screen.
|
boolean |
isLocalVideoAllowed(Call call)
Implements OperationSetVideoTelephony#isLocalVideoAllowed(Call).
|
boolean |
isPartialStreaming(Call call)
If the streaming is partial (not the full desktop).
|
void |
movePartialDesktopStreaming(Call call,
int x,
int y)
Move origin of a partial desktop streaming.
|
void |
setLocalVideoAllowed(Call call,
boolean allowed)
Implements OperationSetVideoTelephony#setLocalVideoAllowed(Call,
boolean).
|
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.
|
answerVideoCallPeer, createVideoCall, createVideoCall, getQualityControl
addPropertyChangeListener, addVideoListener, getConferenceMember, getLocalVisualComponent, getVisualComponent, getVisualComponents, isLocalVideoStreaming, removePropertyChangeListener, removeVideoListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, addVideoListener, answerVideoCallPeer, createVideoCall, createVideoCall, getConferenceMember, getLocalVisualComponent, getQualityControl, getVisualComponent, getVisualComponents, isLocalVideoStreaming, removePropertyChangeListener, removeVideoListener
protected java.awt.Dimension size
protected java.awt.Point origin
public OperationSetDesktopStreamingSipImpl(OperationSetBasicTelephonySipImpl basicTelephony)
basicTelephony
- the OperationSetBasicTelephonySipImpl the
new extension should build uponpublic org.jitsi.service.neomedia.MediaUseCase getMediaUseCase()
getMediaUseCase
in class AbstractOperationSetVideoTelephony<OperationSetBasicTelephonySipImpl,ProtocolProviderServiceSipImpl,CallSipImpl,CallPeerSipImpl>
public Call createVideoCall(java.lang.String uri, org.jitsi.service.neomedia.device.MediaDevice mediaDevice) throws OperationFailedException, java.text.ParseException
createVideoCall
in interface OperationSetDesktopStreaming
uri
- the address of the callee that we should invite to a new
call.mediaDevice
- the media device to use for the desktop streamingOperationFailedException
- with the corresponding code if we fail
to create the video call.java.text.ParseException
- if callee is not a valid sip address
string.public Call createVideoCall(Contact callee, org.jitsi.service.neomedia.device.MediaDevice mediaDevice) throws OperationFailedException
createVideoCall
in interface OperationSetDesktopStreaming
callee
- the address of the callee that we should invite to a new
call.mediaDevice
- the media device to use for the desktop streamingOperationFailedException
- with the corresponding code if we fail
to create the video call.protected void addDesktopShareHeader(javax.sip.message.Message message) throws java.text.ParseException
message
- the SIP Message in which a header change
is to be reflectedjava.text.ParseException
- if modifying the specified SIP
Message to reflect the header change failspublic Call createVideoCall(java.lang.String uri) throws OperationFailedException, java.text.ParseException
createVideoCall
in interface OperationSetVideoTelephony
createVideoCall
in class OperationSetVideoTelephonySipImpl
uri
- the address of the callee that we should invite to a new
call.OperationFailedException
- with the corresponding code if we fail
to create the video call.java.text.ParseException
- if callee is not a valid sip address
string.public Call createVideoCall(Contact callee) throws OperationFailedException
createVideoCall
in interface OperationSetVideoTelephony
createVideoCall
in class OperationSetVideoTelephonySipImpl
callee
- the address of the callee that we should invite to a new
call.OperationFailedException
- with the corresponding code if we fail
to create the video call.public void setLocalVideoAllowed(Call call, boolean allowed) throws OperationFailedException
setLocalVideoAllowed
in interface OperationSetVideoTelephony
setLocalVideoAllowed
in class OperationSetVideoTelephonySipImpl
call
- the call where we'd like to allow sending local video.allowed
- true if local video transmission is allowed and
false otherwise.OperationFailedException
- if video initialization fails.public boolean isLocalVideoAllowed(Call call)
isLocalVideoAllowed
in interface OperationSetVideoTelephony
isLocalVideoAllowed
in class AbstractOperationSetVideoTelephony<OperationSetBasicTelephonySipImpl,ProtocolProviderServiceSipImpl,CallSipImpl,CallPeerSipImpl>
call
- the Call whose video transmission properties we are
interested in.public void setLocalVideoAllowed(Call call, org.jitsi.service.neomedia.device.MediaDevice mediaDevice, boolean allowed) throws OperationFailedException
setLocalVideoAllowed
in interface OperationSetDesktopStreaming
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 boolean isPartialStreaming(Call call)
isPartialStreaming
in interface OperationSetDesktopStreaming
call
- the Call whose video transmission properties we are
interested in.public void movePartialDesktopStreaming(Call call, int x, int y)
movePartialDesktopStreaming
in interface OperationSetDesktopStreaming
call
- the Call whose video transmission properties we are
interested in.x
- new x coordinate originy
- new y coordinate originpublic java.awt.Point getOrigin()
protected static java.awt.Point getOriginForMediaDevice(org.jitsi.service.neomedia.device.MediaDevice device)
device
- media device
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.