![]() |
PortSIP VoIP SDK Manual for Windows
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 | |
| Int32 | PortSIP.PortSIPLib.setAudioDeviceId (Int32 recordingDeviceId, Int32 playoutDeviceId) |
| Set the audio device that will be used for audio call. More... | |
| Int32 | PortSIP.PortSIPLib.setVideoDeviceId (Int32 deviceId) |
| Set the video device that will be used for video call. More... | |
| Int32 | PortSIP.PortSIPLib.setVideoResolution (Int32 width, Int32 height) |
| Set the video capturing resolution. More... | |
| Int32 | PortSIP.PortSIPLib.setAudioBitrate (Int32 sessionId, AUDIOCODEC_TYPE audioCodecType, Int32 bitrateKbps) |
| Set the audio bitrate. More... | |
| Int32 | PortSIP.PortSIPLib.setVideoBitrate (Int32 sessionId, Int32 bitrateKbps) |
| Set the video bitrate. More... | |
| Int32 | PortSIP.PortSIPLib.setVideoFrameRate (Int32 sessionId, Int32 frameRate) |
| Set the video frame rate. More... | |
| Int32 | PortSIP.PortSIPLib.sendVideo (Int32 sessionId, Boolean sendState) |
| Send the video to remote side. More... | |
| void | PortSIP.PortSIPLib.muteMicrophone (Boolean mute) |
| Mute the device microphone. It's unavailable for Android and iOS. More... | |
| void | PortSIP.PortSIPLib.muteSpeaker (Boolean mute) |
| Mute the device speaker. It's unavailable for Android and iOS. More... | |
| void | PortSIP.PortSIPLib.setChannelOutputVolumeScaling (Int32 sessionId, Int32 scaling) |
| void | PortSIP.PortSIPLib.setLocalVideoWindow (IntPtr localVideoWindow) |
| Set the window that is used to display the local video image. More... | |
| Int32 | PortSIP.PortSIPLib.setRemoteVideoWindow (Int32 sessionId, IntPtr remoteVideoWindow) |
| Set the window for a session that is used to display the received remote video image. More... | |
| Int32 | PortSIP.PortSIPLib.displayLocalVideo (Boolean state) |
| Start/stop displaying the local video image. More... | |
| Int32 | PortSIP.PortSIPLib.setVideoNackStatus (Boolean state) |
| Enable/disable the NACK feature (rfc6642) that helps to improve the video quality. More... | |
| Int32 PortSIP.PortSIPLib.setAudioDeviceId | ( | Int32 | recordingDeviceId, |
| Int32 | playoutDeviceId | ||
| ) |
Set the audio device that will be used for audio call.
| recordingDeviceId | Device ID (index) for audio recording. (Microphone). |
| playoutDeviceId | Device ID (index) for audio playback (Speaker). |
| Int32 PortSIP.PortSIPLib.setVideoDeviceId | ( | Int32 | deviceId | ) |
Set the video device that will be used for video call.
| deviceId | Device ID (index) for video device (camera). |
| Int32 PortSIP.PortSIPLib.setVideoResolution | ( | Int32 | width, |
| Int32 | height | ||
| ) |
Set the video capturing resolution.
| width | Video width. |
| height | Video height. |
| Int32 PortSIP.PortSIPLib.setAudioBitrate | ( | Int32 | sessionId, |
| AUDIOCODEC_TYPE | audioCodecType, | ||
| Int32 | bitrateKbps | ||
| ) |
Set the audio bitrate.
| bitrateKbps | The audio bitrate in KBPS. |
| Int32 PortSIP.PortSIPLib.setVideoBitrate | ( | Int32 | sessionId, |
| Int32 | bitrateKbps | ||
| ) |
Set the video bitrate.
| bitrateKbps | The video bitrate in KBPS. |
| Int32 PortSIP.PortSIPLib.setVideoFrameRate | ( | Int32 | sessionId, |
| Int32 | frameRate | ||
| ) |
Set the video frame rate.
| frameRate | The frame rate value with minimum value 5, and maximum value 30. A greater value will enable you better video quality but requires more bandwidth. |
| Int32 PortSIP.PortSIPLib.sendVideo | ( | Int32 | sessionId, |
| Boolean | 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 PortSIP.PortSIPLib.muteMicrophone | ( | Boolean | mute | ) |
Mute the device microphone. It's unavailable for Android and iOS.
| mute | If the value is set to true, the microphone will be muted. You may also set it to false to un-mute it. |
| void PortSIP.PortSIPLib.muteSpeaker | ( | Boolean | mute | ) |
Mute the device speaker. It's unavailable for Android and iOS.
| mute | If the value is set to true, the speaker is muted. You may also set it to false to un-mute it. |
| void PortSIP.PortSIPLib.setChannelOutputVolumeScaling | ( | Int32 | sessionId, |
| Int32 | 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. |
| void PortSIP.PortSIPLib.setLocalVideoWindow | ( | IntPtr | localVideoWindow | ) |
Set the window that is used to display the local video image.
| localVideoWindow | The window on which the local video image from camera will be displayed. |
| Int32 PortSIP.PortSIPLib.setRemoteVideoWindow | ( | Int32 | sessionId, |
| IntPtr | remoteVideoWindow | ||
| ) |
Set the window for a session that is used to display the received remote video image.
| sessionId | The session ID of the call. |
| remoteVideoWindow | The window to display received remote video image. |
| Int32 PortSIP.PortSIPLib.displayLocalVideo | ( | Boolean | state | ) |
Start/stop displaying the local video image.
| state | Set to true to display local video image. |
| Int32 PortSIP.PortSIPLib.setVideoNackStatus | ( | Boolean | state | ) |
Enable/disable the NACK feature (rfc6642) that helps to improve the video quality.
| state | Set to true to enable. |