Index: talk/app/webrtc/rtpreceiverinterface.h |
diff --git a/talk/app/webrtc/rtpreceiverinterface.h b/talk/app/webrtc/rtpreceiverinterface.h |
index 099699efc4be7a6d729558144131a4163eeed865..6a671a7b465fbf3faa4f65987667d79b77a420b9 100644 |
--- a/talk/app/webrtc/rtpreceiverinterface.h |
+++ b/talk/app/webrtc/rtpreceiverinterface.h |
@@ -35,6 +35,7 @@ |
#include "talk/app/webrtc/proxy.h" |
#include "talk/app/webrtc/mediastreaminterface.h" |
+#include "talk/session/media/mediasession.h" |
#include "webrtc/base/refcount.h" |
#include "webrtc/base/scoped_ref_ptr.h" |
@@ -44,12 +45,17 @@ class RtpReceiverInterface : public rtc::RefCountInterface { |
public: |
virtual rtc::scoped_refptr<MediaStreamTrackInterface> track() const = 0; |
+ // Audio or video? |
+ virtual cricket::MediaType media_type() const = 0; |
+ |
// Not to be confused with "mid", this is a field we can temporarily use |
// to uniquely identify a receiver until we implement Unified Plan SDP. |
virtual std::string id() const = 0; |
virtual void Stop() = 0; |
+ virtual void Reconfigure() = 0; |
pthatcher1
2015/11/11 00:45:02
Can you add a comment describing what effect this
Taylor Brandstetter
2015/11/11 01:33:30
Done. Just to note, I'm planning to move this meth
|
+ |
protected: |
virtual ~RtpReceiverInterface() {} |
}; |
@@ -57,8 +63,10 @@ class RtpReceiverInterface : public rtc::RefCountInterface { |
// Define proxy for RtpReceiverInterface. |
BEGIN_PROXY_MAP(RtpReceiver) |
PROXY_CONSTMETHOD0(rtc::scoped_refptr<MediaStreamTrackInterface>, track) |
+PROXY_CONSTMETHOD0(cricket::MediaType, media_type) |
PROXY_CONSTMETHOD0(std::string, id) |
PROXY_METHOD0(void, Stop) |
+PROXY_METHOD0(void, Reconfigure) |
END_PROXY() |
} // namespace webrtc |