![]() |
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.
|
| - (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 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. |