|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.protocol.media.AbstractOperationSetVideoTelephony<T,U,V,W>
T - the implementation specific telephony operation set class like for
example OperationSetBasicTelephonySipImpl.U - the implementation specific provider class like for example
ProtocolProviderServiceSipImpl.V - the MediaAwareCall implementation like
CallSipImpl or CallJabberImpl.W - the MediaAwarePeerCall implementation like
CallPeerSipImpl or CallPeerJabberImpl.public abstract class AbstractOperationSetVideoTelephony<T extends OperationSetBasicTelephony<U>,U extends ProtocolProviderService,V extends MediaAwareCall<W,T,U>,W extends MediaAwareCallPeer<V,?,U>>
Represents a default implementation of OperationSetVideoTelephony in order to make it easier for implementers to provide complete solutions while focusing on implementation-specific details.
| Field Summary | |
|---|---|
protected T |
basicTelephony
The telephony-related functionality this extension builds upon. |
protected U |
parentProvider
The SIP ProtocolProviderService implementation which created this instance and for which telephony conferencing services are being provided by this instance. |
| Fields inherited from interface net.java.sip.communicator.service.protocol.OperationSetVideoTelephony |
|---|
LOCAL_VIDEO_STREAMING |
| Constructor Summary | |
|---|---|
AbstractOperationSetVideoTelephony(T basicTelephony)
Initializes a new AbstractOperationSetVideoTelephony instance which builds upon the telephony-related functionality of a specific OperationSetBasicTelephony implementation. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(Call call,
PropertyChangeListener listener)
Adds a specific PropertyChangeListener to the list of listeners which get notified when the properties (e.g. |
void |
addVideoListener(CallPeer peer,
VideoListener listener)
Delegates to the CallPeerMediaHandler of the specified CallPeer because the video is provided by it. |
Component |
createLocalVisualComponent(CallPeer peer,
VideoListener listener)
Implements OperationSetVideoTelephony.createLocalVisualComponent(CallPeer,
VideoListener). |
Call |
createVideoCall(Contact callee,
QualityPreset qualityPreferences)
Create a new video call and invite the specified CallPeer to it with initial video setting. |
Call |
createVideoCall(String uri,
QualityPreset qualityPreferences)
Create a new video call and invite the specified CallPeer to it with initial video setting. |
void |
disposeLocalVisualComponent(CallPeer peer,
Component component)
Implements OperationSetVideoTelephony.disposeLocalVisualComponent(CallPeer,
Component). |
MediaUseCase |
getMediaUseCase()
Get the MediaUseCase of a video telephony operation set. |
QualityControl |
getQualityControl(CallPeer peer)
Returns the quality control for video calls if any. |
Component |
getVisualComponent(CallPeer peer)
Deprecated. |
List<Component> |
getVisualComponents(CallPeer peer)
Gets the visual/video Components available in this telephony for a specific CallPeer. |
boolean |
isLocalVideoAllowed(Call call)
Determines whether the streaming of local video in a specific Call is currently allowed. |
boolean |
isLocalVideoStreaming(Call call)
Determines whether a specific Call is currently streaming the local video (to a remote destination). |
void |
removePropertyChangeListener(Call call,
PropertyChangeListener listener)
Removes a specific PropertyChangeListener from the list of listeners which get notified when the properties (e.g. |
void |
removeVideoListener(CallPeer peer,
VideoListener listener)
Delegates to the CallPeerMediaHandler of the specified CallPeer because the video is provided by it. |
void |
setLocalVideoAllowed(Call call,
boolean allowed)
Implements OperationSetVideoTelephony#setLocalVideoAllowed(Call, boolean). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.protocol.OperationSetVideoTelephony |
|---|
answerVideoCallPeer, createVideoCall, createVideoCall |
| Field Detail |
|---|
protected final U extends ProtocolProviderService parentProvider
protected final T extends OperationSetBasicTelephony<U> basicTelephony
| Constructor Detail |
|---|
public AbstractOperationSetVideoTelephony(T basicTelephony)
basicTelephony - the OperationSetBasicTelephony
the new extension should build upon| Method Detail |
|---|
public void addVideoListener(CallPeer peer,
VideoListener listener)
addVideoListener in interface OperationSetVideoTelephonypeer - the CallPeer that we will be registering
listener with.listener - the VideoListener that we'd like to register.
public Component createLocalVisualComponent(CallPeer peer,
VideoListener listener)
throws OperationFailedException
OperationSetVideoTelephony.createLocalVisualComponent(CallPeer,
VideoListener).
createLocalVisualComponent in interface OperationSetVideoTelephonypeer - the CallPeer that we are sending our local video to.listener - the VideoListener where we'd like to retrieve
the Component containing the local video.
OperationFailedException - if we fail extracting the local video.
public void disposeLocalVisualComponent(CallPeer peer,
Component component)
OperationSetVideoTelephony.disposeLocalVisualComponent(CallPeer,
Component).
disposeLocalVisualComponent in interface OperationSetVideoTelephonypeer - the CallPeer whose local video component we'd like
to dispose of.component - the Component that we'll be disposing of.@Deprecated public Component getVisualComponent(CallPeer peer)
getVisualComponent in interface OperationSetVideoTelephonypeer - the CallPeer whose video is to be retrieved
public List<Component> getVisualComponents(CallPeer peer)
getVisualComponents in interface OperationSetVideoTelephonypeer - the CallPeer whose videos are to be retrieved
public void removeVideoListener(CallPeer peer,
VideoListener listener)
removeVideoListener in interface OperationSetVideoTelephonypeer - the CallPeer that we'd like to unregister our
VideoListener from.listener - the VideoListener that we'd like to unregister.
public void setLocalVideoAllowed(Call call,
boolean allowed)
throws OperationFailedException
setLocalVideoAllowed in interface OperationSetVideoTelephonycall - 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 OperationSetVideoTelephonycall - the Call whose video transmission properties we are
interested in.
public boolean isLocalVideoStreaming(Call call)
isLocalVideoStreaming in interface OperationSetVideoTelephonycall - the Call whose video transmission we are interested
in.
public void addPropertyChangeListener(Call call,
PropertyChangeListener listener)
OperationSetVideoTelephony.LOCAL_VIDEO_STREAMING) associated with a specific
Call change their values.
addPropertyChangeListener in interface OperationSetVideoTelephonycall - the Call to start listening to the changes of
the property values oflistener - the PropertyChangeListener to be notified
when the properties associated with the specified Call change
their values
public void removePropertyChangeListener(Call call,
PropertyChangeListener listener)
OperationSetVideoTelephony.LOCAL_VIDEO_STREAMING) associated with a specific
Call change their values.
removePropertyChangeListener in interface OperationSetVideoTelephonycall - the Call to stop listening to the changes of the
property values oflistener - the PropertyChangeListener to no longer be
notified when the properties associated with the specified Call
change their valuespublic MediaUseCase getMediaUseCase()
public QualityControl getQualityControl(CallPeer peer)
getQualityControl in interface OperationSetVideoTelephonypeer - the peer which this control operates on.
public Call createVideoCall(String uri,
QualityPreset qualityPreferences)
throws OperationFailedException,
ParseException
createVideoCall in interface OperationSetVideoTelephonyuri - the address of the callee that we should invite to a new
call.qualityPreferences - the quality preset we will use establishing
the video call, and we will expect from the other side. When establishing
call we don't have any indications whether remote part supports quality
presets, so this setting can be ignored.
OperationFailedException - with the corresponding code if we fail
to create the video call.
ParseException - if callee is not a valid sip address
string.
public Call createVideoCall(Contact callee,
QualityPreset qualityPreferences)
throws OperationFailedException
createVideoCall in interface OperationSetVideoTelephonycallee - the address of the callee that we should invite to a new
call.qualityPreferences - the quality preset we will use establishing
the video call, and we will expect from the other side. When establishing
call we don't have any indications whether remote part supports quality
presets, so this setting can be ignored.
OperationFailedException - with the corresponding code if we fail
to create the video call.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||