liblinphone
3.8.0
|
When a call is running, it is possible to retrieve in real time current measured volumes and quality indicator.
#define LINPHONE_CALL_STATS_RECEIVED_RTCP_UPDATE (1 << 0) |
received_rtcp field of LinphoneCallStats object has been updated
#define LINPHONE_CALL_STATS_SENT_RTCP_UPDATE (1 << 1) |
sent_rtcp field of LinphoneCallStats object has been updated
#define LINPHONE_VOLUME_DB_LOWEST (-120) |
Lowest volume measurement that can be returned by linphone_call_get_play_volume() or linphone_call_get_record_volume(), corresponding to pure silence.
typedef struct _LinphoneCallStats LinphoneCallStats |
The LinphoneCallStats objects carries various statistic informations regarding quality of audio or video streams.
To receive these informations periodically and as soon as they are computed, the application is invited to place a LinphoneCoreCallStatsUpdatedCb callback in the LinphoneCoreVTable structure it passes for instanciating the LinphoneCore object (see linphone_core_new() ).
At any time, the application can access last computed statistics using linphone_call_get_audio_stats() or linphone_call_get_video_stats().
float linphone_call_get_play_volume | ( | LinphoneCall * | call | ) |
Returns the measured sound volume played locally (received from remote). It is expressed in dbm0.
float linphone_call_get_record_volume | ( | LinphoneCall * | call | ) |
Returns the measured sound volume recorded locally (sent to remote). It is expressed in dbm0.
float linphone_call_get_current_quality | ( | LinphoneCall * | call | ) |
Obtain real-time quality rating of the call
Based on local RTP statistics and RTCP feedback, a quality rating is computed and updated during all the duration of the call. This function returns its value at the time of the function call. It is expected that the rating is updated at least every 5 seconds or so. The rating is a floating point number comprised between 0 and 5.
4-5 = good quality
3-4 = average quality
2-3 = poor quality
1-2 = very poor quality
0-1 = can't be worse, mostly unusable
float linphone_call_get_average_quality | ( | LinphoneCall * | call | ) |
Returns call quality averaged over all the duration of the call.
See linphone_call_get_current_quality() for more details about quality measurement.
const LinphoneCallStats* linphone_call_get_audio_stats | ( | LinphoneCall * | call | ) |
Access last known statistics for audio stream, for a given call.
const LinphoneCallStats* linphone_call_get_video_stats | ( | LinphoneCall * | call | ) |
Access last known statistics for video stream, for a given call.
bool_t linphone_call_media_in_progress | ( | LinphoneCall * | call | ) |
Indicates whether an operation is in progress at the media side. It can a bad idea to initiate signaling operations (adding video, pausing the call, removing video, changing video parameters) while the media is busy in establishing the connection (typically ICE connectivity checks). It can result in failures generating loss of time in future operations in the call. Applications are invited to check this function after each call state change to decide whether certain operations are permitted or not.
call | the call |
float linphone_call_stats_get_sender_loss_rate | ( | const LinphoneCallStats * | stats | ) |
Get the local loss rate since last report
float linphone_call_stats_get_receiver_loss_rate | ( | const LinphoneCallStats * | stats | ) |
Gets the remote reported loss rate since last report
float linphone_call_stats_get_sender_interarrival_jitter | ( | const LinphoneCallStats * | stats, |
LinphoneCall * | call | ||
) |
Gets the local interarrival jitter
float linphone_call_stats_get_receiver_interarrival_jitter | ( | const LinphoneCallStats * | stats, |
LinphoneCall * | call | ||
) |
Gets the remote reported interarrival jitter
uint64_t linphone_call_stats_get_late_packets_cumulative_number | ( | const LinphoneCallStats * | stats, |
LinphoneCall * | call | ||
) |
Gets the cumulative number of late packets
float linphone_call_stats_get_download_bandwidth | ( | const LinphoneCallStats * | stats | ) |
Get the bandwidth measurement of the received stream, expressed in kbit/s, including IP/UDP/RTP headers.
[in] | stats | LinphoneCallStats object |
float linphone_call_stats_get_upload_bandwidth | ( | const LinphoneCallStats * | stats | ) |
Get the bandwidth measurement of the sent stream, expressed in kbit/s, including IP/UDP/RTP headers.
[in] | stats | LinphoneCallStats object |
LinphoneIceState linphone_call_stats_get_ice_state | ( | const LinphoneCallStats * | stats | ) |
Get the state of ICE processing.
[in] | stats | LinphoneCallStats object |
LinphoneUpnpState linphone_call_stats_get_upnp_state | ( | const LinphoneCallStats * | stats | ) |
Get the state of uPnP processing.
[in] | stats | LinphoneCallStats object |
void linphone_call_start_recording | ( | LinphoneCall * | call | ) |
Start call recording. The output file where audio is recorded must be previously specified with linphone_call_params_set_record_file().
void linphone_call_stop_recording | ( | LinphoneCall * | call | ) |
Stop call recording.