add estimated bandwidth statistics

This commit is contained in:
Simon Morlat 2017-11-01 09:35:38 +01:00
parent 7219a87bee
commit 66b50d6676
3 changed files with 9 additions and 0 deletions

View file

@ -243,6 +243,10 @@
<source>callStatsDownloadBandwidth</source>
<translation>Download bandwidth</translation>
</message>
<message>
<source>callStatsEstimatedDownloadBandwidth</source>
<translation>Estimated download bandwidth</translation>
</message>
<message>
<source>callStatsIceState</source>
<translation>ICE state</translation>

View file

@ -243,6 +243,10 @@
<source>callStatsDownloadBandwidth</source>
<translation>Bande passante de réception</translation>
</message>
<message>
<source>callStatsEstimatedDownloadBandwidth</source>
<translation>Bande passante de réception estimée</translation>
</message>
<message>
<source>callStatsIceState</source>
<translation>État ICE</translation>

View file

@ -653,6 +653,7 @@ void CallModel::updateStats (const shared_ptr<const linphone::CallStats> &callSt
statsList << ::createStat(tr("callStatsJitterBuffer"), QStringLiteral("%1 ms").arg(callStats->getJitterBufferSizeMs()));
break;
case linphone::StreamTypeVideo: {
statsList << ::createStat(tr("callStatsEstimatedDownloadBandwidth"), QStringLiteral("%1 kbits/s").arg(int(callStats->getEstimatedDownloadBandwidth())));
const QString sentVideoDefinitionName = ::Utils::coreStringToAppString(params->getSentVideoDefinition()->getName());
const QString sentVideoDefinition = QStringLiteral("%1x%2")
.arg(params->getSentVideoDefinition()->getWidth())