![]() |
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::setVideoDeviceId: |
Set the video device that will be used for video call. More... | |
(int) | - PortSIPSDK::setVideoResolution:height: |
Set the video capturing resolution. More... | |
(int) | - PortSIPSDK::setAudioBitrate:codecType:bitrateKbps: |
Set the audio bit rate. More... | |
(int) | - PortSIPSDK::setVideoBitrate:bitrateKbps: |
Set the video bitrate. More... | |
(int) | - PortSIPSDK::setVideoFrameRate:frameRate: |
Set the video frame rate. More... | |
(int) | - PortSIPSDK::sendVideo:sendState: |
Send the video to remote side. More... | |
(void) | - PortSIPSDK::setLocalVideoWindow: |
Set the window on which the local video image will be displayed. More... | |
(int) | - PortSIPSDK::setRemoteVideoWindow:remoteVideoWindow: |
Set the window for a session to display the received remote video image. More... | |
(int) | - PortSIPSDK::displayLocalVideo: |
Start/stop displaying the local video image. More... | |
(int) | - PortSIPSDK::setVideoNackStatus: |
Enable/disable the NACK feature (RFC4585) to help to improve the video quality. More... | |
(int) | - PortSIPSDK::setLoudspeakerStatus: |
Set the audio device that will be used for audio call. More... | |
(int) | - PortSIPSDK::setChannelOutputVolumeScaling:scaling: |
- (int) setVideoDeviceId: | (int) | deviceId |
Set the video device that will be used for video call.
deviceId | Device ID (index) for video device (camera). |
- (int) setVideoResolution: | (int) | width | |
height: | (int) | height | |
Set the video capturing resolution.
width | Video width. |
height | Video height. |
- (int) setAudioBitrate: | (long) | sessionId | |
codecType: | (AUDIOCODEC_TYPE) | codecType | |
bitrateKbps: | (int) | bitrateKbps | |
Set the audio bit rate.
sessionId | The session ID of the call. |
codecType | Audio codec type. |
bitrateKbps | The Audio bit rate in KBPS. |
- (int) setVideoBitrate: | (long) | sessionId | |
bitrateKbps: | (int) | bitrateKbps | |
Set the video bitrate.
sessionId | The session ID of the call. Set it to -1 for all calls. |
bitrateKbps | The video bit rate in KBPS. |
- (int) setVideoFrameRate: | (long) | sessionId | |
frameRate: | (int) | frameRate | |
Set the video frame rate.
sessionId | The session ID of the call. Set it to -1 for all calls. |
frameRate | The frame rate value, with its minimum value 5, and maximum value 30. Greater value renders better video quality but requires more bandwidth. |
- (int) sendVideo: | (long) | sessionId | |
sendState: | (BOOL) | sendState | |
Send the video to remote side.
sessionId | The session ID of the call. |
sendState | Set to true to send the video, or false to stop sending. |
- (void) setLocalVideoWindow: | (PortSIPVideoRenderView *) | localVideoWindow |
Set the window on which the local video image will be displayed.
localVideoWindow | The PortSIPVideoRenderView for displaying local video image from camera. |
- (int) setRemoteVideoWindow: | (long) | sessionId | |
remoteVideoWindow: | (PortSIPVideoRenderView *) | remoteVideoWindow | |
Set the window for a session to display the received remote video image.
sessionId | The session ID of the call. |
remoteVideoWindow | The PortSIPVideoRenderView for displaying received remote video image. |
- (int) displayLocalVideo: | (BOOL) | state |
Start/stop displaying the local video image.
state | Set to true to display local video image. |
- (int) setVideoNackStatus: | (BOOL) | state |
Enable/disable the NACK feature (RFC4585) to help to improve the video quality.
state | Set to true to enable. |
- (int) setLoudspeakerStatus: | (BOOL) | enable |
Set the audio device that will be used for audio call.
enable | By setting to true the SDK uses loudspeaker for audio call. This is available for mobile platform only. |
- (int) setChannelOutputVolumeScaling: | (long) | sessionId | |
scaling: | (int) | scaling | |
Set a volume |scaling| to be applied to the outgoing signal of a specific audio channel.
sessionId | The session ID of the call. |
scaling | Valid scale ranges [0, 1000]. Default is 100. |