|
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.util.PropertyChangeNotifier
net.java.sip.communicator.service.protocol.media.CallPeerMediaHandler<CallPeerSipImpl>
net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl
public class CallPeerMediaHandlerSipImpl
The media handler class handles all media management for a single CallPeer. This includes initializing and configuring streams, generating SDP, handling ICE, etc. One instance of CallPeer always corresponds to exactly one instance of CallPeerMediaHandler and both classes are only separated for reasons of readability.
| Field Summary | |
|---|---|
(package private) boolean |
supportQualityControls
Whether other party is able to change video quality settings. |
| Fields inherited from class net.java.sip.communicator.service.protocol.media.CallPeerMediaHandler |
|---|
AUDIO_LOCAL_SSRC, AUDIO_REMOTE_SSRC, SSRC_UNKNOWN, VIDEO_LOCAL_SSRC, VIDEO_REMOTE_SSRC |
| Constructor Summary | |
|---|---|
CallPeerMediaHandlerSipImpl(CallPeerSipImpl peer)
Creates a new handler that will be managing media streams for peer. |
|
| Method Summary | |
|---|---|
String |
createOffer()
Creates a session description String representing the MediaStreams that this MediaHandler is prepare to exchange. |
URL |
getCallInfoURL()
Returns a URL pointing ta a location with call control information for this peer or null if no such URL is available for the CallPeer associated with this handler.. |
protected ConfigurationService |
getConfigurationService()
Returns a reference to the currently valid media service for use by this handler's generic ancestor. |
protected MediaService |
getMediaService()
Returns a reference to the currently valid media service for use by this handler's generic ancestor. |
protected NetworkAddressManagerService |
getNetworkAddressManagerService()
Returns a reference to the currently valid network address manager service for use by this handler's generic ancestor. |
QualityControl |
getQualityControl()
Returns the quality control for video calls if any. |
protected TransportManagerSipImpl |
getTransportManager()
Returns the transport manager that is handling our address management. |
void |
processAnswer(String answer)
Handles the specified answer by creating and initializing the corresponding MediaStreams. |
String |
processOffer(String offerString)
Parses offerString, creates the MediaStreams that it describes and constructs a response representing the state of this MediaHandler. |
void |
setSupportQualityControls(boolean value)
Sometimes as initing a call with custom preset can set and we force that quality controls is supported. |
protected void |
throwOperationFailedException(String message,
int errorCode,
Throwable cause)
Lets the underlying implementation take note of this error and only then throws it to the using bundles. |
| Methods inherited from class net.java.sip.communicator.util.PropertyChangeNotifier |
|---|
addPropertyChangeListener, firePropertyChange, getPropertyChangeSource, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
boolean supportQualityControls
| Constructor Detail |
|---|
public CallPeerMediaHandlerSipImpl(CallPeerSipImpl peer)
peer - that CallPeerSipImpl instance that we will be
managing media for.| Method Detail |
|---|
public String createOffer()
throws OperationFailedException
OperationFailedException - if creating the SDP fails for some
reason.
public String processOffer(String offerString)
throws OperationFailedException,
IllegalArgumentException
offerString - The SDP offer that we'd like to parse, handle and get
a response for.
OperationFailedException - if parsing or handling
offerString fails or we have a problem while creating the
response.
IllegalArgumentException - if there's a problem with the format
or semantics of the offerString.
public void processAnswer(String answer)
throws OperationFailedException,
IllegalArgumentException
answer - the SDP answer that we'd like to handle.
OperationFailedException - if we fail to handle answer for
reasons like failing to initialize media devices or streams.
IllegalArgumentException - if there's a problem with the syntax or
the semantics of answer.public URL getCallInfoURL()
protected NetworkAddressManagerService getNetworkAddressManagerService()
NetworkAddressManagerServiceprotected ConfigurationService getConfigurationService()
MediaServiceprotected MediaService getMediaService()
MediaService
protected void throwOperationFailedException(String message,
int errorCode,
Throwable cause)
throws OperationFailedException
throwOperationFailedException in class CallPeerMediaHandler<CallPeerSipImpl>message - the message to be logged and then wrapped in a new
OperationFailedExceptionerrorCode - the error code to be assigned to the new
OperationFailedExceptioncause - the Throwable that has caused the necessity to log
an error and have a new OperationFailedException thrown
OperationFailedException - the exception that we wanted this method
to throw.protected TransportManagerSipImpl getTransportManager()
getTransportManager in class CallPeerMediaHandler<CallPeerSipImpl>public QualityControl getQualityControl()
public void setSupportQualityControls(boolean value)
value - whether quality controls is supported..
|
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 | |||||||||