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
RTP packets, Audio stream and video stream callback

Functions

void com.portsip.PortSipSdk.setRtpCallback (boolean enable)
 
void com.portsip.PortSipSdk.enableAudioStreamCallback (long sessionId, boolean enable, int enum_audioCallbackMode)
 
void com.portsip.PortSipSdk.enableVideoStreamCallback (long sessionId, int enum_videoCallbackMode)
 

Detailed Description

functions

Function Documentation

◆ setRtpCallback()

void com.portsip.PortSipSdk.setRtpCallback ( boolean  enable)

Set the RTP callbacks to allow access to the sent and received RTP packets.

Parameters
enableSet to true to enable the RTP callback for receiving and sending RTP packets. The onSendingRtpPacket and onReceivedRtpPacket events will be triggered.

◆ enableAudioStreamCallback()

void com.portsip.PortSipSdk.enableAudioStreamCallback ( long  sessionId,
boolean  enable,
int  enum_audioCallbackMode 
)

Enable/disable the audio stream callback. The onAudioRawCallback event will be triggered if the callback is enabled.

Parameters
sessionIdThe session ID of call.
enableSet to true to enable audio stream callback, or false to stop the callback.
enum_audioCallbackModeThe audio stream callback mode. Supported modes include ENUM_AUDIOSTREAM_NONE, ENUM_AUDIOSTREAM_LOCAL_MIX, ENUM_AUDIOSTREAM_LOCAL_PER_CHANNEL, ENUM_AUDIOSTREAM_REMOTE_MIX, ENUM_AUDIOSTREAM_REMOTE_PER_CHANNEL.

◆ enableVideoStreamCallback()

void com.portsip.PortSipSdk.enableVideoStreamCallback ( long  sessionId,
int  enum_videoCallbackMode 
)

Enable/disable the video stream callback, the onVideoRawCallback event will be triggered if the callback is enabled.

Parameters
sessionIdThe session ID of call.
enum_videoCallbackModeThe video stream callback mode. Supported modes include ENUM_VIDEOSTREAM_NONE, ENUM_VIDEOSTREAM_LOCAL, ENUM_VIDEOSTREAM_REMOTE, ENUM_VIDEOSTREAM_BOTH.