Index: webrtc/api/mediastreaminterface.h |
diff --git a/webrtc/api/mediastreaminterface.h b/webrtc/api/mediastreaminterface.h |
index baebad7b6909d8273daf03b60cefeae5ee5d46ab..eb51633e2baed7cc011667f99304db319d12b6d0 100644 |
--- a/webrtc/api/mediastreaminterface.h |
+++ b/webrtc/api/mediastreaminterface.h |
@@ -133,13 +133,21 @@ class VideoTrackInterface |
: public MediaStreamTrackInterface, |
public rtc::VideoSourceInterface<VideoFrame> { |
public: |
+ // Video track content hint, used to override the source is_screencast |
+ // property. |
+ // See https://crbug.com/653531 and https://github.com/WICG/mst-content-hint. |
+ enum class ContentHint { kNone, kFluid, kDetailed }; |
+ |
// Register a video sink for this track. |
void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink, |
- const rtc::VideoSinkWants& wants) override{}; |
- void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink) override{}; |
+ const rtc::VideoSinkWants& wants) override {} |
+ void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink) override {} |
virtual VideoTrackSourceInterface* GetSource() const = 0; |
+ virtual ContentHint content_hint() const { return ContentHint::kNone; } |
+ virtual void set_content_hint(ContentHint hint) {} |
+ |
protected: |
virtual ~VideoTrackInterface() {} |
}; |