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
Conference functions

Functions

int com.portsip.PortSipSdk.createAudioConference ()
 
int com.portsip.PortSipSdk.createVideoConference (PortSIPVideoRenderer conferenceVideoWindow, int videoWidth, int videoHeight, boolean displayLocalVideoInConference)
 
void com.portsip.PortSipSdk.destroyConference ()
 
int com.portsip.PortSipSdk.setConferenceVideoWindow (PortSIPVideoRenderer conferenceVideoWindow)
 
int com.portsip.PortSipSdk.joinToConference (long sessionId)
 
int com.portsip.PortSipSdk.removeFromConference (long sessionId)
 

Detailed Description

Function Documentation

◆ createAudioConference()

int com.portsip.PortSipSdk.createAudioConference ( )

Create an audio conference. It will fail if the existing conference is not ended yet.

Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

◆ createVideoConference()

int com.portsip.PortSipSdk.createVideoConference ( PortSIPVideoRenderer  conferenceVideoWindow,
int  videoWidth,
int  videoHeight,
boolean  displayLocalVideoInConference 
)

Create a video conference. It will fail if the existing conference is not ended yet.

Parameters
conferenceVideoWindowSurfaceView The window used for displaying the conference video.
videoWidthWidth of conference video resolution
videoHeightHeight of conference video resolution
displayLocalVideoInConferenceDisplay local video during conference
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

◆ destroyConference()

void com.portsip.PortSipSdk.destroyConference ( )

End the exist conference.

◆ setConferenceVideoWindow()

int com.portsip.PortSipSdk.setConferenceVideoWindow ( PortSIPVideoRenderer  conferenceVideoWindow)

Set the window for a conference that is used for displaying the received remote video image.

Parameters
conferenceVideoWindowSurfaceView The window which is used for displaying the conference video
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

◆ joinToConference()

int com.portsip.PortSipSdk.joinToConference ( long  sessionId)

Join a session into existing conference. If the call is in hold, it will be un-hold automatically.

Parameters
sessionIdSession ID of the call.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

◆ removeFromConference()

int com.portsip.PortSipSdk.removeFromConference ( long  sessionId)

Remove a session from an existing conference.

Parameters
sessionIdSession ID of the call.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.