![]() |
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.
|
- (void PortSIPEventDelegate) onAudioRawCallback: | (long) | sessionId | |
audioCallbackMode: | (int) | audioCallbackMode | |
data: | (unsigned char *) | data | |
dataLength: | (int) | dataLength | |
samplingFreqHz: | (int) | samplingFreqHz | |
This event will be triggered once receiving the audio packets when enableAudioStreamCallback function is called.
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 could be 8000 or 16000. |
- (int PortSIPEventDelegate) onVideoRawCallback: | (long) | sessionId | |
videoCallbackMode: | (int) | videoCallbackMode | |
width: | (int) | width | |
height: | (int) | height | |
data: | (unsigned char *) | data | |
dataLength: | (int) | dataLength | |
This event will be triggered once received 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, such as YV12. |
dataLength | The data size. |
- (void PortSIPEventDelegate) onVideoDecoderCallback: | (long) | sessionId | |
width: | (int) | width | |
height: | (int) | height | |
framerate: | (int) | framerate | |
bitrate: | (int) | bitrate | |
This event will be triggered once per second containing the frame rate and bit rate for the incoming stream or new incoming Video size is detected, if called enableVideoDecoderCallback function.
sessionId | The session ID of the call. |
width | The width of video image. |
height | The height of video image. |
framerate | The frame rate of video. |
bitrate | The bitrate of video codec. |