Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1961)

Unified Diff: webrtc/video/rtp_stream_receiver.h

Issue 2853503002: Dont request keyframes if the stream is inactive or if we are currently receiving a keyframe. (Closed)
Patch Set: Added EndToEndTest. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/video/rtp_stream_receiver.h
diff --git a/webrtc/video/rtp_stream_receiver.h b/webrtc/video/rtp_stream_receiver.h
index afd19a7addc34a639bb5fe195c79716c950b01b5..967eeea9c1b97c1504258c1600f62381af81d883 100644
--- a/webrtc/video/rtp_stream_receiver.h
+++ b/webrtc/video/rtp_stream_receiver.h
@@ -135,6 +135,9 @@ class RtpStreamReceiver : public RtpData,
void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override;
+ rtc::Optional<int64_t> LastReceivedPacketMs() const;
+ rtc::Optional<int64_t> LastReceivedKeyframePacketMs() const;
+
private:
bool AddReceiveCodec(const VideoCodec& video_codec);
bool ReceivePacket(const uint8_t* packet,

Powered by Google App Engine
This is Rietveld 408576698