public interface CallInterface
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(Constants.ChangeListenerKey propertyName,
java.beans.PropertyChangeListener listener)
In case of callerAddress or calleeAddress changes this callback will notify the application.
|
void |
bringVideoViewToFront(VideoViewType videoViewType)
Puts Video View of given type in front of any other Video View.
|
boolean |
canReceiveVideo()
Indicates remote side can send video or not.
|
boolean |
canSendVideo()
Indicates remote side can receive video or not.
|
void |
changeVideoResolution(int width,
int height)
Changes video resolution as given values.
|
void |
consultativeTransfer(CallInterface call)
Transfers the current call to the transfer target given with another call session in a consultative transfer manner.
|
void |
endCall()
Stops the related call and releases allocated resources.
|
void |
endCall(java.lang.String callEndReason)
Stops the related call with reason and releases allocated resources.
|
int |
getActiveCamera() |
java.util.List<java.util.Map> |
getAvailableCodecs(CodecType codecType)
Returns the list of available and supported codecs
|
java.lang.String |
getCalleeAddress()
Returns the callee address information related the call instance
|
java.lang.String |
getCalleeName()
Returns caller name of the related call
|
java.lang.String |
getCallerAddress()
Returns the caller address information related the call instance
|
java.lang.String |
getCallerName()
Returns caller name of the related call
|
java.lang.String |
getCallId()
Returns callId that related with SIP session id
For the outgoing call, this value is not set until establish call is succeeded
|
CallState |
getCallState()
Returns the state of the call
|
android.hardware.Camera.Size |
getCameraResolution() |
java.util.Map<java.lang.String,java.lang.String> |
getCustomParameters()
Gets custom SIP Headers which are set to the Call as custom parameters to
call in order to send them in all mid-call event requests.
|
java.lang.String |
getId()
Returns unique identifier of call object which is generated from SDK
Identifier is NOT related with SIP session id
|
MediaAttributes |
getMediaAttributes()
Returns the media attributes of the call
|
void |
getRTPStatistics(RTPStatisticsHandler handler)
Gets RTP/RTP Statistics for related call
|
VideoViewType |
getVideoViewOnFront()
Returns type of the Video View which is on front.
|
void |
holdCall()
Holds the related call.
|
boolean |
isMute()
Returns if call is in mute state
|
boolean |
isVideoEnabled()
Returns if video enabled for this call.
|
boolean |
isVoiceEnabled()
Returns if microphone is muted or not for this call.
|
void |
mute()
Mutes the voice of local user.
|
void |
sendCustomParameters(java.util.Map<java.lang.String,java.lang.String> customParameters)
Sends the given custom SIP headers to SPiDR server.
|
boolean |
sendDTMF(char tone)
Inserts Dual Tone Multi Frequency Signal to sending queue and returns the success
|
void |
setCallerName(java.lang.String callerName)
This method sets the caller name of origin.
|
void |
setCaptureDevice(int position,
android.hardware.Camera.Size videoResolution,
ProcessListener processListener)
Sets device capture and video resolution to specified position and resolution of the related call
|
void |
setCaptureDevice(android.content.Intent mediaProjectionPermissionResultData,
ProcessListener processListener)
Sets device capture to image source for the related call
|
void |
setCustomParameters(java.util.Map<java.lang.String,java.lang.String> customParameters)
Sets given custom SIP Headers as custom parameters to call in order to
send them in all mid-call event requests.
|
void |
setLocalVideoView(VideoView localVideoView)
Sets GUI View for video of local user
|
void |
setRemoteVideoView(VideoView remoteVideoView)
Sets GUI View for video of remote peer
|
void |
setVideoEnabled(boolean videoEnabled)
Sets video enabled or not for this call.
|
void |
setVoiceEnabled(boolean voiceEnabled)
Sets microphone muted or not for this call.
|
void |
takeLocalVideoSnapshot(Snapshot.TakeSnapshotCallback callback)
Takes still image of the active local video stream
|
void |
transferCall(java.lang.String newAddress)
Transfers the call to the given address.
|
void |
unHoldCall()
Unholds the related call.
|
void |
unMute()
Opens the voice of local user.
|
void |
videoMute() |
void |
videoStart()
Starts video of local user.
|
void |
videoStop()
Stops the video of local user.
|
void |
videoUnMute() |
void endCall() throws MobileException
MobileException
void endCall(java.lang.String callEndReason) throws MobileException
callEndReason
- String end call reason (Limit is 600 character)MobileException
void videoUnMute()
void videoMute()
void videoStart()
void videoStop()
void mute()
void unMute()
void holdCall()
void unHoldCall()
void sendCustomParameters(java.util.Map<java.lang.String,java.lang.String> customParameters)
customParameters
- key-value pairs of custom SIP headers to sendvoid setCustomParameters(java.util.Map<java.lang.String,java.lang.String> customParameters)
customParameters
- key-value pairs of custom SIP headers to sendjava.util.Map<java.lang.String,java.lang.String> getCustomParameters()
void setCaptureDevice(int position, android.hardware.Camera.Size videoResolution, ProcessListener processListener)
position
- that intended to settingvideoResolution
- that intended to resolutionprocessListener
- that returns setting device capture resultvoid setCaptureDevice(android.content.Intent mediaProjectionPermissionResultData, ProcessListener processListener)
mediaProjectionPermissionResultData
- processListener
- that returns setting device capture resultvoid changeVideoResolution(int width, int height)
width
- width of videoheight
- height of videovoid transferCall(java.lang.String newAddress)
newAddress
- String
user which call will be transferred tovoid consultativeTransfer(CallInterface call)
call
- other call session as transfer targetjava.lang.String getCallerAddress()
String
java.lang.String getCalleeAddress()
String
java.lang.String getId()
String
unique identifier of call objectjava.lang.String getCallId()
String
identifier that related SIP session idvoid setLocalVideoView(VideoView localVideoView)
localVideoView
- VideoView
for local uservoid setRemoteVideoView(VideoView remoteVideoView)
remoteVideoView
- VideoView
for remote peervoid bringVideoViewToFront(VideoViewType videoViewType)
videoViewType
- type of video view to bring to frontVideoViewType getVideoViewOnFront()
CallState getCallState()
com.genband.mobile.impl.services.call.CallState.Type
MediaAttributes getMediaAttributes()
MediaAttributes
boolean isMute()
Boolean
boolean isVoiceEnabled()
Boolean
void setVoiceEnabled(boolean voiceEnabled)
voiceEnabled
- Boolean
boolean isVideoEnabled()
Boolean
void setVideoEnabled(boolean videoEnabled)
videoEnabled
- Boolean
boolean canReceiveVideo()
sendrecv | sendonly | recvonly | inactive | |
Values | true | true | false | false |
boolean canSendVideo()
sendrecv | sendonly | recvonly | inactive | |
Values | true | false | true | false |
int getActiveCamera()
android.hardware.Camera.Size getCameraResolution()
Camera.Size
void setCallerName(java.lang.String callerName)
callerName
- Name, which will be shown on the screen of terminator.java.lang.String getCallerName()
String
java.lang.String getCalleeName()
String
boolean sendDTMF(char tone)
tone
- character value of DTMF tone. Can only be 0,1...,9,*,#,a,b,c,d,A,B,C,D;void addPropertyChangeListener(Constants.ChangeListenerKey propertyName, java.beans.PropertyChangeListener listener)
propertyName
- parameter for which object should listenlistener
- listener objectvoid getRTPStatistics(RTPStatisticsHandler handler)
handler
- Handler Interface to get RTP statisticsvoid takeLocalVideoSnapshot(Snapshot.TakeSnapshotCallback callback)
callback
- to capture result of the operationjava.util.List<java.util.Map> getAvailableCodecs(CodecType codecType)
codecType
- the type of the codecs