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

Unified Diff: Source/platform/mediastream/MediaStreamDescriptor.h

Issue 827673002: Add MediaStream.active attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Allow addTrack/removeTrack when mediastream.ended is true Created 5 years, 11 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
Index: Source/platform/mediastream/MediaStreamDescriptor.h
diff --git a/Source/platform/mediastream/MediaStreamDescriptor.h b/Source/platform/mediastream/MediaStreamDescriptor.h
index d4c05d5d82359c1c2702def0b8bae6e4c9edfb36..f3658f66a7e8f8e1e0e332c1601f6865f4e02a49 100644
--- a/Source/platform/mediastream/MediaStreamDescriptor.h
+++ b/Source/platform/mediastream/MediaStreamDescriptor.h
@@ -80,6 +80,9 @@ public:
void addRemoteTrack(MediaStreamComponent*);
void removeRemoteTrack(MediaStreamComponent*);
+ bool active() const { return m_active; }
+ void setActive(bool active) { m_active = active; }
+
bool ended() const { return m_ended; }
void setEnded() { m_ended = true; }
@@ -94,6 +97,7 @@ private:
String m_id;
Vector<RefPtr<MediaStreamComponent> > m_audioComponents;
Vector<RefPtr<MediaStreamComponent> > m_videoComponents;
+ bool m_active;
bool m_ended;
OwnPtr<ExtraData> m_extraData;

Powered by Google App Engine
This is Rietveld 408576698