зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1376873 - Fix GetRTPStatistics; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7471 --HG-- extra : rebase_source : c85d48f46800be6b26e32a9f216b053e26bc523d
This commit is contained in:
Родитель
d044bb4e47
Коммит
eab091ae07
|
@ -226,12 +226,9 @@ bool WebrtcAudioConduit::GetAVStats(int32_t* jitterBufferDelayMs,
|
|||
bool WebrtcAudioConduit::GetRTPStats(unsigned int* jitterMs,
|
||||
unsigned int* cumulativeLost) {
|
||||
ASSERT_ON_THREAD(mStsThread);
|
||||
unsigned int maxJitterMs = 0;
|
||||
unsigned int discardedPackets;
|
||||
*jitterMs = 0;
|
||||
*cumulativeLost = 0;
|
||||
return !mSendChannelProxy->GetRTPStatistics(*jitterMs, maxJitterMs,
|
||||
discardedPackets, *cumulativeLost);
|
||||
return !mSendChannelProxy->GetRTPStatistics(*jitterMs, *cumulativeLost);
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
|
|
|
@ -357,6 +357,13 @@ class Channel
|
|||
return rtp_receiver_->GetSources();
|
||||
}
|
||||
|
||||
int GetPlayoutFrequency() const {
|
||||
if (audio_coding_) {
|
||||
return audio_coding_->PlayoutFrequency();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private:
|
||||
class ProcessAndEncodeAudioTask;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче