![]() |
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.
|
Functions | |
int | com.portsip.PortSipSdk.playVideoFileToRemote (long sessionId, String aviFile, boolean loop, boolean playAudio) |
int | com.portsip.PortSipSdk.stopPlayVideoFileToRemote (long sessionId) |
int | com.portsip.PortSipSdk.playAudioFileToRemote (long sessionId, String filename, int fileSamplesPerSec, boolean loop) |
int | com.portsip.PortSipSdk.stopPlayAudioFileToRemote (long sessionId) |
int | com.portsip.PortSipSdk.playAudioFileToRemoteAsBackground (long sessionId, String filename, int fileSamplesPerSec) |
int | com.portsip.PortSipSdk.stopPlayAudioFileToRemoteAsBackground (long sessionId) |
void | com.portsip.PortSipSdk.audioPlayLoopbackTest (boolean enable) |
int com.portsip.PortSipSdk.playVideoFileToRemote | ( | long | sessionId, |
String | aviFile, | ||
boolean | loop, | ||
boolean | playAudio | ||
) |
Play an AVI file to remote party.
sessionId | Session ID of the call. |
aviFile | The full filepath, such as "/mnt/sdcard/test.avi". |
loop | Set to false to stop playing video file when it is ended, or true to play it repeatedly. |
playAudio | If set to true, audio and video will be played together; or false to play the video only. |
int com.portsip.PortSipSdk.stopPlayVideoFileToRemote | ( | long | sessionId | ) |
Stop play video file to remote side.
sessionId | Session ID of the call. |
int com.portsip.PortSipSdk.playAudioFileToRemote | ( | long | sessionId, |
String | filename, | ||
int | fileSamplesPerSec, | ||
boolean | loop | ||
) |
Play a wave file to remote party.
sessionId | Session ID of the call. |
filename | The full filepath, such as "/mnt/sdcard/test.wav". |
fileSamplesPerSec | The wave file sample in seconds. It could be 8000, 16000 or 32000. |
loop | Set to false to stop playing audio file when it is ended, or true to play it repeatedly. |
int com.portsip.PortSipSdk.stopPlayAudioFileToRemote | ( | long | sessionId | ) |
Stop playing wave file to remote side.
sessionId | Session ID of the call. |
int com.portsip.PortSipSdk.playAudioFileToRemoteAsBackground | ( | long | sessionId, |
String | filename, | ||
int | fileSamplesPerSec | ||
) |
Play a wave file to remote party as conversation background sound.
sessionId | Session ID of the call. |
filename | The full filepath, such as "/mnt/sdcard/test.wav". |
fileSamplesPerSec | The wave file sample, in seconds. It should be 8000, 16000 or 32000. |
int com.portsip.PortSipSdk.stopPlayAudioFileToRemoteAsBackground | ( | long | sessionId | ) |
Stop playing a wave file to remote party as background sound for the conversation.
sessionId | Session ID of the call. |
void com.portsip.PortSipSdk.audioPlayLoopbackTest | ( | boolean | enable | ) |
Used for testing loopback for the audio device.
enable | Set to true to start testing audio loopback test; or set to false to stop. |