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; |
}; |
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. |
+ 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; |