![]() |
PortSIP VoIP SDK Manual for Android
16.2
PortSIP features our newest, supported, quality-assured VoIP SDK used by Several hundred companies around the world for easy VoIP application develop and quality-assured code.
|
int com.portsip.PortSipSdk.setVideoDeviceId | ( | int | deviceId | ) |
Set the video device that will be used for video call.
deviceId | Device ID (index) for video device (camera). |
int com.portsip.PortSipSdk.setVideoResolution | ( | int | width, |
int | height | ||
) |
Set the video capturing resolution.
width | Video resolution, width |
height | Video resolution, height |
int com.portsip.PortSipSdk.setAudioBitrate | ( | long | sessionId, |
int | enum_audiocodec, | ||
int | bitrateKbps | ||
) |
Set the audio bitrate.
sessionId | The session ID of the call. |
enum_audiocodec | Audio codec type allowed: ENUM_AUDIOCODEC_OPUS |
bitrateKbps | The Audio bitrate in KBPS. |
int com.portsip.PortSipSdk.setVideoBitrate | ( | long | sessionId, |
int | bitrateKbps | ||
) |
Set the video bitrate.
sessionId | The session ID of the call. |
bitrateKbps | The video bitrate in KBPS. |
int com.portsip.PortSipSdk.setVideoFrameRate | ( | long | sessionId, |
int | frameRate | ||
) |
Set the video frame rate. Usually you do not need to call this function to set the frame rate since the SDK uses default frame rate.
sessionId | The session ID of the call. |
frameRate | The frame rate value, with its minimum of 5, and maximum value of 30. The greater the value is, the better video quality enabled and more bandwidth required; |
int com.portsip.PortSipSdk.sendVideo | ( | long | sessionId, |
boolean | send | ||
) |
Send the video to remote side.
sessionId | The session ID of the call. |
send | Set to true to send the video, or false to stop sending. |
void com.portsip.PortSipSdk.setLocalVideoWindow | ( | PortSIPVideoRenderer | renderer | ) |
Set the window that is used for displaying the local video image.
renderer | SurfaceView a SurfaceView for displaying local video image from camera. |
int com.portsip.PortSipSdk.setRemoteVideoWindow | ( | long | sessionId, |
PortSIPVideoRenderer | renderer | ||
) |
Set the window for a session that is used for displaying the received remote video image.
sessionId | The session ID of the call. |
renderer | SurfaceView a SurfaceView for displaying the received remote video image. |
void com.portsip.PortSipSdk.displayLocalVideo | ( | boolean | state | ) |
Start/stop displaying the local video image.
state | Set to true to display local video image. |
int com.portsip.PortSipSdk.setVideoNackStatus | ( | boolean | state | ) |
Enable/disable the NACK feature (rfc6642) which helps to improve the video quality.
state | Set to true to enable. |
int com.portsip.PortSipSdk.setChannelOutputVolumeScaling | ( | long | sessionId, |
int | scaling | ||
) |
Set a volume |scaling| to be applied to the outgoing signal of a specific audio channel.
sessionId | The session ID of the call. |
scaling | Valid scale ranges [0, 1000]. Default is 100. |
Set<PortSipEnumDefine.AudioDevice> com.portsip.PortSipSdk.getAudioDevices | ( | ) |
Get current set of available/selectable audio devices.
int com.portsip.PortSipSdk.setAudioDevice | ( | PortSipEnumDefine.AudioDevice | defaultDevice | ) |
Set the audio device that will used for audio call. For Android and iOS, switch between earphone and Loudspeaker allowed.
defaultDevice | Set to true the SDK use loudspeaker for audio call, this just available for mobile platform only. |