Get avg_delay_ms from DecoderTiming callback.
R=stefan@webrtc.org BUG=1667 Review URL: https://webrtc-codereview.appspot.com/28339004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7949 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
9b79197c80
commit
98c04b38a8
@ -41,11 +41,13 @@ VideoReceiveStream::Stats ReceiveStatisticsProxy::GetStats() const {
|
||||
stats = stats_;
|
||||
}
|
||||
stats.c_name = GetCName();
|
||||
codec_->GetReceiveSideDelay(channel_, &stats.avg_delay_ms);
|
||||
stats.discarded_packets = codec_->GetNumDiscardedPackets(channel_);
|
||||
codec_->GetReceiveCodecStastistics(
|
||||
channel_, stats.key_frames, stats.delta_frames);
|
||||
|
||||
codec_->GetReceiveCodecStastistics(channel_, stats.key_frames,
|
||||
stats.delta_frames);
|
||||
|
||||
return stats;
|
||||
}
|
||||
|
||||
@ -64,6 +66,17 @@ void ReceiveStatisticsProxy::IncomingRate(const int video_channel,
|
||||
stats_.total_bitrate_bps = bitrate_bps;
|
||||
}
|
||||
|
||||
void ReceiveStatisticsProxy::DecoderTiming(int decode_ms,
|
||||
int max_decode_ms,
|
||||
int current_delay_ms,
|
||||
int target_delay_ms,
|
||||
int jitter_buffer_ms,
|
||||
int min_playout_delay_ms,
|
||||
int render_delay_ms) {
|
||||
CriticalSectionScoped lock(crit_.get());
|
||||
stats_.avg_delay_ms = target_delay_ms;
|
||||
}
|
||||
|
||||
void ReceiveStatisticsProxy::StatisticsUpdated(
|
||||
const webrtc::RtcpStatistics& statistics,
|
||||
uint32_t ssrc) {
|
||||
|
@ -59,7 +59,7 @@ class ReceiveStatisticsProxy : public ViEDecoderObserver,
|
||||
int target_delay_ms,
|
||||
int jitter_buffer_ms,
|
||||
int min_playout_delay_ms,
|
||||
int render_delay_ms) OVERRIDE {}
|
||||
int render_delay_ms) OVERRIDE;
|
||||
virtual void RequestNewKeyFrame(const int video_channel) OVERRIDE {}
|
||||
|
||||
// Overrides RtcpStatisticsBallback.
|
||||
|
Loading…
x
Reference in New Issue
Block a user