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

Unified Diff: webrtc/pc/rtpreceiver.h

Issue 2675173003: Adding "adapter" ORTC objects on top of ChannelManager/BaseChannel/etc. (Closed)
Patch Set: Move ORTC files to different subdirectories Created 3 years, 10 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
« no previous file with comments | « webrtc/pc/rtcstatscollector_unittest.cc ('k') | webrtc/pc/rtpreceiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/rtpreceiver.h
diff --git a/webrtc/pc/rtpreceiver.h b/webrtc/pc/rtpreceiver.h
index c135f227c03a47adcfd7912fc249a5f71b29b5bf..ba17280f95f8609b4130dbf5379e191a7baf7722 100644
--- a/webrtc/pc/rtpreceiver.h
+++ b/webrtc/pc/rtpreceiver.h
@@ -34,6 +34,7 @@ namespace webrtc {
class RtpReceiverInternal : public RtpReceiverInterface {
public:
virtual void Stop() = 0;
+ virtual uint32_t ssrc() const = 0;
pthatcher1 2017/02/09 00:11:44 Can you leave a comment about what this is and why
Taylor Brandstetter 2017/02/10 00:19:46 Done.
};
class AudioRtpReceiver : public ObserverInterface,
@@ -41,8 +42,9 @@ class AudioRtpReceiver : public ObserverInterface,
public rtc::RefCountedObject<RtpReceiverInternal>,
public sigslot::has_slots<> {
public:
- AudioRtpReceiver(MediaStreamInterface* stream,
- const std::string& track_id,
+ // An SSRC of 0 will create a receiver that will match the first SSRC it
+ // sees.
pthatcher1 2017/02/09 00:11:44 Instead of making a comment like this, could we do
Taylor Brandstetter 2017/02/10 00:19:46 We could do that, I was just trying to change as f
+ AudioRtpReceiver(const std::string& track_id,
uint32_t ssrc,
cricket::VoiceChannel* channel);
@@ -74,6 +76,7 @@ class AudioRtpReceiver : public ObserverInterface,
// RtpReceiverInternal implementation.
void Stop() override;
+ uint32_t ssrc() const override { return ssrc_; }
void SetObserver(RtpReceiverObserverInterface* observer) override;
@@ -99,8 +102,9 @@ class AudioRtpReceiver : public ObserverInterface,
class VideoRtpReceiver : public rtc::RefCountedObject<RtpReceiverInternal>,
public sigslot::has_slots<> {
public:
- VideoRtpReceiver(MediaStreamInterface* stream,
- const std::string& track_id,
+ // An SSRC of 0 will create a receiver that will match the first SSRC it
+ // sees.
+ VideoRtpReceiver(const std::string& track_id,
rtc::Thread* worker_thread,
uint32_t ssrc,
cricket::VideoChannel* channel);
@@ -127,6 +131,7 @@ class VideoRtpReceiver : public rtc::RefCountedObject<RtpReceiverInternal>,
// RtpReceiverInternal implementation.
void Stop() override;
+ uint32_t ssrc() const override { return ssrc_; }
void SetObserver(RtpReceiverObserverInterface* observer) override;
« no previous file with comments | « webrtc/pc/rtcstatscollector_unittest.cc ('k') | webrtc/pc/rtpreceiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698