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.
Functions
Media statistics functions

Functions

(int) - PortSIPSDK::getAudioStatistics:sendBytes:sendPackets:sendPacketsLost:sendFractionLost:sendRttMS:sendCodecType:sendJitterMS:sendAudioLevel:recvBytes:recvPackets:recvPacketsLost:recvFractionLost:recvCodecType:recvJitterMS:recvAudioLevel:
 Obtain the statistics of audio channel. More...
 
(int) - PortSIPSDK::getVideoStatistics:sendBytes:sendPackets:sendPacketsLost:sendFractionLost:sendRttMS:sendCodecType:sendFrameWidth:sendFrameHeight:sendBitrateBPS:sendFramerate:recvBytes:recvPackets:recvPacketsLost:recvFractionLost:recvCodecType:recvFrameWidth:recvFrameHeight:recvBitrateBPS:recvFramerate:
 Obtain the statistics of video channel. More...
 

Detailed Description

Function Documentation

◆ getAudioStatistics:sendBytes:sendPackets:sendPacketsLost:sendFractionLost:sendRttMS:sendCodecType:sendJitterMS:sendAudioLevel:recvBytes:recvPackets:recvPacketsLost:recvFractionLost:recvCodecType:recvJitterMS:recvAudioLevel:()

- (int) getAudioStatistics: (long)  sessionId
sendBytes: (int *)  sendBytes
sendPackets: (int *)  sendPackets
sendPacketsLost: (int *)  sendPacketsLost
sendFractionLost: (int *)  sendFractionLost
sendRttMS: (int *)  sendRttMS
sendCodecType: (int *)  sendCodecType
sendJitterMS: (int *)  sendJitterMS
sendAudioLevel: (int *)  sendAudioLevel
recvBytes: (int *)  recvBytes
recvPackets: (int *)  recvPackets
recvPacketsLost: (int *)  recvPacketsLost
recvFractionLost: (int *)  recvFractionLost
recvCodecType: (int *)  recvCodecType
recvJitterMS: (int *)  recvJitterMS
recvAudioLevel: (int *)  recvAudioLevel 

Obtain the statistics of audio channel.

Parameters
sessionIdThe session ID of call conversation.
sendBytesThe number of sent bytes.
sendPacketsThe number of sent packets.
sendPacketsLostThe number of sent but lost packet.
sendFractionLostFraction of sent but lost packet in percentage.
sendRttMSThe round-trip time of the session, in milliseconds.
sendCodecTypeSend Audio codec Type.
sendJitterMSThe sent jitter, in milliseconds.
sendAudioLevelThe sent audio level.It ranges 0 - 9.
recvBytesThe number of received bytes.
recvPacketsThe number of received packets.
recvPacketsLostThe number of received but lost packet.
recvFractionLostFraction of received but lost packet in percentage.
recvCodecTypeReceived Audio codec Type.
recvJitterMSThe received jitter, in milliseconds.
recvAudioLevelThe received audio level.It ranges 0 - 9.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

◆ getVideoStatistics:sendBytes:sendPackets:sendPacketsLost:sendFractionLost:sendRttMS:sendCodecType:sendFrameWidth:sendFrameHeight:sendBitrateBPS:sendFramerate:recvBytes:recvPackets:recvPacketsLost:recvFractionLost:recvCodecType:recvFrameWidth:recvFrameHeight:recvBitrateBPS:recvFramerate:()

- (int) getVideoStatistics: (long)  sessionId
sendBytes: (int *)  sendBytes
sendPackets: (int *)  sendPackets
sendPacketsLost: (int *)  sendPacketsLost
sendFractionLost: (int *)  sendFractionLost
sendRttMS: (int *)  sendRttMS
sendCodecType: (int *)  sendCodecType
sendFrameWidth: (int *)  sendFrameWidth
sendFrameHeight: (int *)  sendFrameHeight
sendBitrateBPS: (int *)  sendBitrateBPS
sendFramerate: (int *)  sendFramerate
recvBytes: (int *)  recvBytes
recvPackets: (int *)  recvPackets
recvPacketsLost: (int *)  recvPacketsLost
recvFractionLost: (int *)  recvFractionLost
recvCodecType: (int *)  recvCodecType
recvFrameWidth: (int *)  recvFrameWidth
recvFrameHeight: (int *)  recvFrameHeight
recvBitrateBPS: (int *)  recvBitrateBPS
recvFramerate: (int *)  recvFramerate 

Obtain the statistics of video channel.

Parameters
sessionIdThe session ID of call conversation.
sendBytesThe number of sent bytes.
sendPacketsThe number of sent packets.
sendPacketsLostThe number of sent but lost packet.
sendFractionLostFraction of sent lost in percentage.
sendRttMSThe round-trip time of the session, in milliseconds.
sendCodecTypeSend Video codec Type.
sendFrameWidthFrame width for the sent video.
sendFrameHeightFrame height for the sent video.
sendBitrateBPSBitrate in BPS for the sent video.
sendFramerateFrame rate for the sent video.
recvBytesThe number of received bytes.
recvPacketsThe number of received packets.
recvPacketsLostThe number of received but lost packet.
recvFractionLostFraction of received but lost packet in percentage.
recvCodecTypeReceived Video codec Type.
recvFrameWidthFrame width for the received video.
recvFrameHeightFrame height for the received video.
recvBitrateBPS(This parameter is not implemented yet) Bitrate in BPS for the received video.
recvFramerateFramerate for the received video.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.