![]() |
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.SIPCallbackEvents.onAudioRawCallback (IntPtr callbackObject, Int32 sessionId, Int32 callbackType, byte[] data, Int32 dataLength, Int32 samplingFreqHz) |
Int32 | PortSIP.SIPCallbackEvents.onVideoRawCallback (IntPtr callbackObject, Int32 sessionId, Int32 callbackType, Int32 width, Int32 height, byte[] data, Int32 dataLength) |
Int32 PortSIP.SIPCallbackEvents.onAudioRawCallback | ( | IntPtr | callbackObject, |
Int32 | sessionId, | ||
Int32 | callbackType, | ||
byte [] | data, | ||
Int32 | dataLength, | ||
Int32 | samplingFreqHz | ||
) |
This event will be triggered once receiving the audio packets if called enableAudioStreamCallback function.
sessionId | The session ID of the call. |
audioCallbackMode | The type that is passed in enableAudioStreamCallback function. |
data | The memory of audio stream. It's in PCM format. |
dataLength | The data size. |
samplingFreqHz | The audio stream sample in HZ. For example, it's 8000 or 16000. |
Int32 PortSIP.SIPCallbackEvents.onVideoRawCallback | ( | IntPtr | callbackObject, |
Int32 | sessionId, | ||
Int32 | callbackType, | ||
Int32 | width, | ||
Int32 | height, | ||
byte [] | data, | ||
Int32 | dataLength | ||
) |
This event will be triggered once receiving the video packets if called enableVideoStreamCallback function.
sessionId | The session ID of the call. |
videoCallbackMode | The type which is passed in enableVideoStreamCallback function. |
width | The width of video image. |
height | The height of video image. |
data | The memory of video stream. It's in YUV420 format, YV12. |
dataLength | The data size. |