Index: talk/app/webrtc/rtpsenderinterface.h |
diff --git a/talk/app/webrtc/rtpsenderinterface.h b/talk/app/webrtc/rtpsenderinterface.h |
index fca98f21db5823397d789922bd21cc79b1d433b0..1127af58a1cd4316889f8a1542c11273b133547f 100644 |
--- a/talk/app/webrtc/rtpsenderinterface.h |
+++ b/talk/app/webrtc/rtpsenderinterface.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" |
@@ -47,12 +48,17 @@ class RtpSenderInterface : public rtc::RefCountInterface { |
virtual bool SetTrack(MediaStreamTrackInterface* track) = 0; |
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; |
+ |
protected: |
virtual ~RtpSenderInterface() {} |
}; |
@@ -61,8 +67,10 @@ class RtpSenderInterface : public rtc::RefCountInterface { |
BEGIN_PROXY_MAP(RtpSender) |
PROXY_METHOD1(bool, SetTrack, MediaStreamTrackInterface*) |
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 |