![]() |
PortSIP VoIP SDK Manual for iOS
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) | - PortSIPSDK::enableSendPcmStreamToRemote:state:streamSamplesPerSec: |
| Enable the SDK to send PCM stream data to remote side from another source instead of microphone. More... | |
| (int) | - PortSIPSDK::sendPcmStreamToRemote:data: |
| Send the audio stream in PCM format from another source instead of audio device capturing (microphone). More... | |
| (int) | - PortSIPSDK::enableSendVideoStreamToRemote:state: |
| Enable the SDK to send video stream data to remote side from another source instead of camera. More... | |
| (int) | - PortSIPSDK::sendVideoStreamToRemote:data:width:height: |
| Send the video stream to remote side. More... | |
| - (int) enableSendPcmStreamToRemote: | (long) | sessionId | |
| state: | (BOOL) | state | |
| streamSamplesPerSec: | (int) | streamSamplesPerSec | |
Enable the SDK to send PCM stream data to remote side from another source instead of microphone.
| sessionId | The session ID of call. |
| state | Set to true to enable the sending stream, or false to disable. |
| streamSamplesPerSec | The PCM stream data sample in seconds. For example: 8000 or 16000. |
| - (int) sendPcmStreamToRemote: | (long) | sessionId | |
| data: | (NSData *) | data | |
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 in 16bit, mono. |
| - (int) enableSendVideoStreamToRemote: | (long) | sessionId | |
| state: | (BOOL) | state | |
Enable the SDK to send video stream data to remote side from another source instead of camera.
| sessionId | The session ID of call. |
| state | Set to true to enable the sending stream, or false to disable. |
| - (int) sendVideoStreamToRemote: | (long) | sessionId | |
| data: | (NSData *) | data | |
| width: | (int) | width | |
| height: | (int) | height | |
Send the video stream to remote side.
| sessionId | Session ID of the call conversation. |
| data | The video stream data. It must be in i420 format. |
| width | The video image width. |
| height | The video image height. |