![]() |
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 | |
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) |
functions
void com.portsip.PortSipSdk.setRtpCallback | ( | boolean | enable | ) |
Set the RTP callbacks to allow access to the sent and received RTP packets.
enable | Set to true to enable the RTP callback for receiving and sending RTP packets. The onSendingRtpPacket and onReceivedRtpPacket events will be triggered. |
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.
sessionId | The session ID of call. |
enable | Set to true to enable audio stream callback, or false to stop the callback. |
enum_audioCallbackMode | The 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. |
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.
sessionId | The session ID of call. |
enum_videoCallbackMode | The video stream callback mode. Supported modes include ENUM_VIDEOSTREAM_NONE, ENUM_VIDEOSTREAM_LOCAL, ENUM_VIDEOSTREAM_REMOTE, ENUM_VIDEOSTREAM_BOTH. |