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

Unified Diff: webrtc/video/video_receive_stream.h

Issue 2886993005: Introduce RtpStreamReceiver and RtpStreamReceiverControllerInterface. (Closed)
Patch Set: 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/video_receive_stream.h
diff --git a/webrtc/video/video_receive_stream.h b/webrtc/video/video_receive_stream.h
index 6656b34963b64d7286d9087137bf08aa53e02158..0357cda116d4c79bdd94bdf0e0c685cd406e98f5 100644
--- a/webrtc/video/video_receive_stream.h
+++ b/webrtc/video/video_receive_stream.h
@@ -36,6 +36,8 @@ class CallStats;
class IvfFileWriter;
class ProcessThread;
class RTPFragmentationHeader;
+class RtpTransportControllerReceiveInterface;
+class RtpTransportReceiver;
class VCMTiming;
class VCMJitterEstimator;
@@ -47,10 +49,10 @@ class VideoReceiveStream : public webrtc::VideoReceiveStream,
public NackSender,
public KeyFrameRequestSender,
public video_coding::OnCompleteFrameCallback,
- public Syncable,
- public RtpPacketSinkInterface {
+ public Syncable {
public:
- VideoReceiveStream(int num_cpu_cores,
+ VideoReceiveStream(RtpTransportControllerReceiveInterface* transport,
+ int num_cpu_cores,
PacketRouter* packet_router,
VideoReceiveStream::Config config,
ProcessThread* process_thread,
@@ -78,9 +80,6 @@ class VideoReceiveStream : public webrtc::VideoReceiveStream,
void EnableEncodedFrameRecording(rtc::PlatformFile file,
size_t byte_limit) override;
- // RtpPacketSinkInterface.
- void OnRtpPacket(const RtpPacketReceived& packet) override;
-
// Implements rtc::VideoSinkInterface<VideoFrame>.
void OnFrame(const VideoFrame& video_frame) override;
@@ -137,6 +136,9 @@ class VideoReceiveStream : public webrtc::VideoReceiveStream,
// Members for the new jitter buffer experiment.
std::unique_ptr<VCMJitterEstimator> jitter_estimator_;
std::unique_ptr<video_coding::FrameBuffer> frame_buffer_;
+
+ std::unique_ptr<RtpTransportReceiver> rtp_transport_receiver_;
+ std::unique_ptr<RtpTransportReceiver> rtp_transport_receiver_rtx_;
};
} // namespace internal
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698