![]() |
PortSIP VoIP SDK Manual for Mac
15.1
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... | |
(int) | - PortSIPSDK::setVideoOrientation: |
Change the orientation of the video. 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... | |
(void) | - PortSIPSDK::muteMicrophone: |
Mute the device microphone. It's unavailable for Android and iOS. More... | |
(void) | - PortSIPSDK::muteSpeaker: |
Mute the device speaker. It's unavailable for Android and iOS. More... | |
(int) | - PortSIPSDK::setAudioDeviceId:outputDeviceId: |
Set the audio device that will be used for audio call. More... | |
(void) | - PortSIPSDK::getDynamicVolumeLevel:microphoneVolume: |
Obtain the dynamic microphone volume level from current 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. |
- (int) setVideoOrientation: | (int) | rotation |
Change the orientation of the video.
rotation | The video rotation that you want to set (0, 90, 180 or 270). |
- (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. |
- (void) muteMicrophone: | (BOOL) | mute |
Mute the device microphone. It's unavailable for Android and iOS.
mute | If the value is set to true, the microphone is muted, or false to have it un-muted. |
- (void) muteSpeaker: | (BOOL) | mute |
Mute the device speaker. It's unavailable for Android and iOS.
mute | If the value is set to true, the speaker is muted, or set to false to un-mute it. |
- (int) setAudioDeviceId: | (int) | inputDeviceId | |
outputDeviceId: | (int) | outputDeviceId | |
Set the audio device that will be used for audio call.
inputDeviceId | Device ID (index) for audio recording (Microphone). |
outputDeviceId | Device ID (index) for audio playback (Speaker). |
- (void) getDynamicVolumeLevel: | (int *) | speakerVolume | |
microphoneVolume: | (int *) | microphoneVolume | |
Obtain the dynamic microphone volume level from current call.
speakerVolume | Return the dynamic speaker volume by this parameter. It ranges from 0 - 9. |
microphoneVolume | Return the dynamic microphone volume by this parameter. It ranges is 0 - 9. |
- (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. |