mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Fix part of the quality report test with realtime text problem
This commit is contained in:
parent
abca8ffbe0
commit
55a4b5a77e
3 changed files with 16 additions and 0 deletions
|
|
@ -234,6 +234,11 @@ const LinphonePayloadType* linphone_call_params_get_used_video_codec(const Linph
|
|||
return cp->video_codec;
|
||||
}
|
||||
|
||||
const LinphonePayloadType* linphone_call_params_get_used_text_codec(const LinphoneCallParams *cp) {
|
||||
return cp->text_codec;
|
||||
}
|
||||
|
||||
|
||||
bool_t linphone_call_params_low_bandwidth_enabled(const LinphoneCallParams *cp) {
|
||||
return cp->low_bandwidth;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -208,6 +208,13 @@ LINPHONE_PUBLIC const LinphonePayloadType* linphone_call_params_get_used_audio_c
|
|||
**/
|
||||
LINPHONE_PUBLIC const LinphonePayloadType* linphone_call_params_get_used_video_codec(const LinphoneCallParams *cp);
|
||||
|
||||
/**
|
||||
* Get the text codec used in the call, described as a LinphonePayloadType structure.
|
||||
* @param[in] cp LinphoneCallParams object
|
||||
* @return The LinphonePayloadType object corresponding to the text codec being used in the call.
|
||||
**/
|
||||
LINPHONE_PUBLIC const LinphonePayloadType* linphone_call_params_get_used_text_codec(const LinphoneCallParams *cp);
|
||||
|
||||
/**
|
||||
* Tell whether the call has been configured in low bandwidth mode or not.
|
||||
* This mode can be automatically discovered thanks to a stun server when activate_edge_workarounds=1 in section [net] of configuration file.
|
||||
|
|
|
|||
|
|
@ -539,6 +539,10 @@ void linphone_reporting_update_media_info(LinphoneCall * call, int stats_type) {
|
|||
stream = &call->videostream->ms;
|
||||
local_payload = linphone_call_params_get_used_video_codec(current_params);
|
||||
remote_payload = local_payload;
|
||||
} else if (stats_type == LINPHONE_CALL_STATS_TEXT && call->textstream != NULL) {
|
||||
stream = &call->textstream->ms;
|
||||
local_payload = linphone_call_params_get_used_text_codec(current_params);
|
||||
remote_payload = local_payload;
|
||||
}
|
||||
|
||||
if (stream != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue