Download PortSIP VoIP SDK Manual for Android
Transcript
int com.portsip.PortSipSdk.playAudioFileToRemoteAsBackground (long sessionId, String filename, int fileSamplesPerSec) Play an wave file to remote party as conversation background sound. Parameters: sessionId filename fileSamplesPerSec Session ID of the call. The file full path name, such as "/mnt/sdcard/test.wav". The wave file sample in seconds, should be 8000 or 16000 or 32000. Returns: If the function succeeds, the return value is 0. If the function fails, the return value is a specific error code. int com.portsip.PortSipSdk.stopPlayAudioFileToRemoteAsBackground (long sessionId) Stop play an wave file to remote party as conversation background sound. Parameters: sessionId Session ID of the call. Returns: If the function succeeds, the return value is 0. If the function fails, the return value is a specific error code. Conference functions Functions int com.portsip.PortSipSdk.createConference (Object conferenceVideoWindow, int enum_videoResolution, boolean displayLocalVideoInConference) void com.portsip.PortSipSdk.destroyConference () int com.portsip.PortSipSdk.setConferenceVideoWindow (Object conferenceVideoWindow) int com.portsip.PortSipSdk.joinToConference (long sessionId) int com.portsip.PortSipSdk.removeFromConference (long sessionId) Detailed Description Function Documentation int com.portsip.PortSipSdk.createConference (Object conferenceVideoWindow, int enum_videoResolution, boolean displayLocalVideoInConference) Create a conference. It's failures if the exists conference isn't destroy yet. Parameters: conferenceVideoW indow enum_videoResolu tion SurfaceView The window which using to display the conference video. The conference video resolution.allow: ENUM_RESULUTION_NONE, ENUM_RESULUTION_QCIF, ENUM_RESULUTION_CIF, ENUM_RESULUTION_VGA, ENUM_RESULUTION_SVGA, 34