![]() |
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.enableSendPcmStreamToRemote (long sessionId, boolean state, int streamSamplesPerSec) |
int | com.portsip.PortSipSdk.sendPcmStreamToRemote (long sessionId, byte[] data, int dataLength) |
int | com.portsip.PortSipSdk.enableSendVideoStreamToRemote (long sessionId, boolean state) |
int | com.portsip.PortSipSdk.sendVideoStreamToRemote (long sessionId, byte[] data, int dataLength, int width, int height) |
int com.portsip.PortSipSdk.enableSendPcmStreamToRemote | ( | long | sessionId, |
boolean | state, | ||
int | streamSamplesPerSec | ||
) |
Enable the SDK send PCM stream data to remote side from another source instead of microphone. This function MUST be called first to send the PCM stream data to another side.
sessionId | The session ID of call. |
state | Set to true to enable the send stream, or false to disable. |
streamSamplesPerSec | The PCM stream data sample, in seconds. For example 8000 or 16000. |
int com.portsip.PortSipSdk.sendPcmStreamToRemote | ( | long | sessionId, |
byte [] | data, | ||
int | dataLength | ||
) |
Send the audio stream in PCM format from another source instead of audio device capturing (microphone).
sessionId | Session ID of the call conversation. |
data | The PCM audio stream data. It must be 16bit, mono. |
dataLength | The size of data. |
int com.portsip.PortSipSdk.enableSendVideoStreamToRemote | ( | long | sessionId, |
boolean | state | ||
) |
Enable the SDK to send video stream data to remote side from another source instead of camera.
This function MUST be called first to send the video stream data to another side.
sessionId | The session ID of call. |
state | Set to true to enable the send stream, or false to disable. |
int com.portsip.PortSipSdk.sendVideoStreamToRemote | ( | long | sessionId, |
byte [] | data, | ||
int | dataLength, | ||
int | width, | ||
int | height | ||
) |
Send the video stream in i420 from another source instead of video device capturing (camera).
Before calling this function, you MUST call the enableSendVideoStreamToRemote function.
sessionId | Session ID of the call conversation. |
data | The video stream data. It must be in i420 format. |
dataLength | The size of data. |
width | The width of the video image. |
height | The height of video image. |