public class OperationSetDesktopStreamingJabberImpl extends OperationSetVideoTelephonyJabberImpl 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
Video panel size.
|
basicTelephony, parentProvider
LOCAL_VIDEO_STREAMING
Constructor and Description |
---|
OperationSetDesktopStreamingJabberImpl(OperationSetBasicTelephonyJabberImpl basicTelephony)
Initializes a new OperationSetDesktopStreamingJabberImpl
instance which builds upon the telephony-related functionality of a
specific OperationSetBasicTelephonyJabberImpl.
|
Modifier and Type | Method and Description |
---|---|
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)
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.
|
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, createOutgoingVideoCall, getQualityControl
addPropertyChangeListener, addVideoListener, createVideoCall, createVideoCall, 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 OperationSetDesktopStreamingJabberImpl(OperationSetBasicTelephonyJabberImpl basicTelephony)
basicTelephony
- the OperationSetBasicTelephonyJabberImpl
the new extension should build uponpublic org.jitsi.service.neomedia.MediaUseCase getMediaUseCase()
getMediaUseCase
in class AbstractOperationSetVideoTelephony<OperationSetBasicTelephonyJabberImpl,ProtocolProviderServiceJabberImpl,CallJabberImpl,CallPeerJabberImpl>
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 Jabber 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.public Call createVideoCall(java.lang.String uri) throws OperationFailedException
createVideoCall
in interface OperationSetVideoTelephony
createVideoCall
in class OperationSetVideoTelephonyJabberImpl
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.public Call createVideoCall(Contact callee) throws OperationFailedException
createVideoCall
in interface OperationSetVideoTelephony
createVideoCall
in class OperationSetVideoTelephonyJabberImpl
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 OperationSetVideoTelephonyJabberImpl
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 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 streaming.
If the device is null, the default device is used.allowed
- true to allow the streaming of local video for
the specified Call; false to disallow itOperationFailedException
- if initializing local video fails.public boolean isLocalVideoAllowed(Call call)
isLocalVideoAllowed
in interface OperationSetVideoTelephony
isLocalVideoAllowed
in class AbstractOperationSetVideoTelephony<OperationSetBasicTelephonyJabberImpl,ProtocolProviderServiceJabberImpl,CallJabberImpl,CallPeerJabberImpl>
call
- the Call whose video transmission properties we are
interested in.protected Call createOutgoingVideoCall(java.lang.String calleeAddress, org.jitsi.service.neomedia.device.MediaDevice videoDevice) throws OperationFailedException
calleeAddress
- Contact addressvideoDevice
- MediaDevice usedOperationFailedException
- with the corresponding code if we fail
to create the video call.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 originprotected 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.