![]() |
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::setRtpCallback: |
Set the RTP callbacks to allow to access the sent and received RTP packets. More... | |
(int) | - PortSIPSDK::enableAudioStreamCallback:enable:callbackMode: |
Enable/disable the audio stream callback. More... | |
(int) | - PortSIPSDK::enableVideoStreamCallback:callbackMode: |
Enable/disable the video stream callback. More... | |
- (int) setRtpCallback: | (BOOL) | enable |
Set the RTP callbacks to allow to access the sent and received RTP packets.
enable | Set to true to enable the RTP callback for received and sent RTP packets. The onSendingRtpPacket and onReceivedRtpPacket events will be triggered. |
- (int) enableAudioStreamCallback: | (long) | sessionId | |
enable: | (BOOL) | enable | |
callbackMode: | (AUDIOSTREAM_CALLBACK_MODE) | callbackMode | |
Enable/disable the audio stream callback.
sessionId | The session ID of call. |
enable | Set to true to enable audio stream callback, or false to stop the callback. |
callbackMode | The audio stream callback mode. |
Type | Description |
---|---|
AUDIOSTREAM_LOCAL_PER_CHANNEL | Callback the audio stream from microphone for one channel based on the given sessionId. |
AUDIOSTREAM_REMOTE_PER_CHANNEL | Callback the received audio stream for one channel based on the given sessionId. |
AUDIOSTREAM_BOTH | Callback both local and remote audio stream on the given sessionId. |
- (int) enableVideoStreamCallback: | (long) | sessionId | |
callbackMode: | (VIDEOSTREAM_CALLBACK_MODE) | callbackMode | |
Enable/disable the video stream callback.
sessionId | The session ID of call. |
callbackMode | The video stream callback mode. |
Mode | Description |
---|---|
VIDEOSTREAM_NONE | Disable video stream callback. |
VIDEOSTREAM_LOCAL | Local video stream callback. |
VIDEOSTREAM_REMOTE | Remote video stream callback. |
VIDEOSTREAM_BOTH | Both of local and remote video stream callback. |