public interface LinphoneCallParams
Modifier and Type | Method and Description |
---|---|
void |
addCustomHeader(String name,
String value)
Add a custom header to be used for the call for which these call params are used.
|
void |
addCustomSdpAttribute(String name,
String value)
Add a custom attribute related to all the streams in the SDP exchanged within SIP messages during a call.
|
void |
addCustomSdpMediaAttribute(LinphoneCore.StreamType type,
String name,
String value)
Add a custom attribute related to a specific stream in the SDP exchanged within SIP messages during a call.
|
boolean |
audioMulticastEnabled()
Use to get multicast state of audio stream.
|
void |
clearCustomSdpAttributes()
Clear the custom SDP attributes related to all the streams in the SDP exchanged within SIP messages during a call.
|
void |
clearCustomSdpMediaAttributes(LinphoneCore.StreamType type)
Clear the custom SDP attributes related to a specific stream in the SDP exchanged within SIP messages during a call.
|
void |
enableAudioMulticast(boolean yesno)
Use to enable multicast rtp for audio stream
|
void |
enableLowBandwidth(boolean enable)
Indicate low bandwith mode.
|
void |
enableRealTimeText(boolean yesno)
Use to enable real time text following rfc4103.
|
void |
enableVideoMulticast(boolean yesno)
Use to enable multicast rtp for video stream.
|
LinphoneCore.MediaDirection |
getAudioDirection()
Get the audio stream direction.
|
String |
getCustomHeader(String name)
Returns the value of a custom header given its name.
|
String |
getCustomSdpAttribute(String name)
Get a custom SDP attribute that is related to all the streams.
|
String |
getCustomSdpMediaAttribute(LinphoneCore.StreamType type,
String name)
Get a custom SDP attribute that is related to a specific stream.
|
LinphoneCore.MediaEncryption |
getMediaEncryption()
return selected media encryption
|
int |
getPrivacy()
Get the privacy mask requested for this call.
|
VideoSize |
getReceivedVideoSize()
Gets the size of the video that is received.
|
VideoSize |
getSentVideoSize()
Gets the size of the video that is sent.
|
String |
getSessionName()
Get the session name of the media session (ie in SDP).
|
PayloadType |
getUsedAudioCodec()
Get the currently used audio codec
|
PayloadType |
getUsedVideoCodec()
Get the currently used video codec
|
LinphoneCore.MediaDirection |
getVideoDirection()
Get the video stream direction.
|
boolean |
getVideoEnabled() |
boolean |
isLowBandwidthEnabled()
Use to know if this call has been configured in low bandwidth mode.
|
boolean |
realTimeTextEnabled()
Use to get real time text following rfc4103.
|
void |
setAudioBandwidth(int value)
set audio bandwidth in kbits/s
|
void |
setAudioDirection(LinphoneCore.MediaDirection dir)
Set the audio stream direction.
|
void |
setMediaEnctyption(LinphoneCore.MediaEncryption menc)
set media encryption (rtp) to use
|
void |
setPrivacy(int privacy_mask)
Set the privacy for the call.
|
void |
setRecordFile(String path)
Set a path to file where the call will be recorded.
|
void |
setSessionName(String name)
Set the session name of the media session (ie in SDP).
|
void |
setVideoDirection(LinphoneCore.MediaDirection dir)
Set the video stream direction.
|
void |
setVideoEnabled(boolean b) |
boolean |
videoMulticastEnabled()
Use to get multicast state of video stream.
|
void setVideoEnabled(boolean b)
boolean getVideoEnabled()
void setAudioBandwidth(int value)
value
- 0 to disable limitationLinphoneCore.MediaEncryption getMediaEncryption()
void setMediaEnctyption(LinphoneCore.MediaEncryption menc)
menc
- MediaEncryption.None, MediaEncryption.SRTP or MediaEncryption.ZRTPPayloadType getUsedAudioCodec()
PayloadType getUsedVideoCodec()
void enableLowBandwidth(boolean enable)
boolean isLowBandwidthEnabled()
void setRecordFile(String path)
path
- Path to the file where the call will be recorded. If it is a WAV
file, only audio will be written whereas if it is a MKV file, audio and video
will be written.void addCustomHeader(String name, String value)
name
- header namevalue
- header valueString getCustomHeader(String name)
void addCustomSdpAttribute(String name, String value)
name
- The name of the attribute to add.value
- The content value of the attribute to add.void addCustomSdpMediaAttribute(LinphoneCore.StreamType type, String name, String value)
type
- The type of the stream to add a custom SDP attribute to.name
- The name of the attribute to add.value
- The content value of the attribute to add.String getCustomSdpAttribute(String name)
name
- The name of the attribute to get.String getCustomSdpMediaAttribute(LinphoneCore.StreamType type, String name)
type
- The type of the stream to add a custom SDP attribute to.name
- The name of the attribute to get.void clearCustomSdpAttributes()
void clearCustomSdpMediaAttributes(LinphoneCore.StreamType type)
type
- The type of the stream to clear custom SDP attributes from.void setPrivacy(int privacy_mask)
privacy_mask
- a or'd int of values defined in interface Privacy
int getPrivacy()
Privacy
void setSessionName(String name)
name
- the session nameString getSessionName()
VideoSize getSentVideoSize()
VideoSize getReceivedVideoSize()
void enableAudioMulticast(boolean yesno)
yesno
- if yes, subsequent calls will propose multicast ip set by LinphoneCore.setAudioMulticastAddrboolean audioMulticastEnabled()
void enableVideoMulticast(boolean yesno)
yesno
- if yes, subsequent outgoing calls will propose multicast ip set by LinphoneCore.setVideoMulticastAddrboolean videoMulticastEnabled()
void enableRealTimeText(boolean yesno)
yesno
- if yes, subsequent outgoing calls will propose rttboolean realTimeTextEnabled()
LinphoneCore.MediaDirection getAudioDirection()
LinphoneCore.MediaDirection getVideoDirection()
void setAudioDirection(LinphoneCore.MediaDirection dir)
dir
- The audio stream direction associated with this call params.void setVideoDirection(LinphoneCore.MediaDirection dir)
dir
- The video stream direction associated with this call params.