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

Unified Diff: third_party/WebKit/public/platform/WebMediaStream.h

Issue 2759953003: Interface RTCRtpReceiver and RTCPeerConnection.getReceivers() added. (Closed)
Patch Set: DISALLOW_COPY_AND_ASSIGN Created 3 years, 9 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: third_party/WebKit/public/platform/WebMediaStream.h
diff --git a/third_party/WebKit/public/platform/WebMediaStream.h b/third_party/WebKit/public/platform/WebMediaStream.h
index 0b05ebeadfe303d9da37debd59dc008e349265c8..82067320f0b23e19b47bcbb3d931a1953fdbfca0 100644
--- a/third_party/WebKit/public/platform/WebMediaStream.h
+++ b/third_party/WebKit/public/platform/WebMediaStream.h
@@ -69,6 +69,12 @@ class WebMediaStream {
BLINK_PLATFORM_EXPORT void audioTracks(WebVector<WebMediaStreamTrack>&) const;
BLINK_PLATFORM_EXPORT void videoTracks(WebVector<WebMediaStreamTrack>&) const;
+ // If a track is not found with the specified id, the returned track's
+ // |isNull| will return true.
+ BLINK_PLATFORM_EXPORT WebMediaStreamTrack
+ getAudioTrack(const WebString& trackId) const;
+ BLINK_PLATFORM_EXPORT WebMediaStreamTrack
+ getVideoTrack(const WebString& trackId) const;
BLINK_PLATFORM_EXPORT void addTrack(const WebMediaStreamTrack&);
BLINK_PLATFORM_EXPORT void removeTrack(const WebMediaStreamTrack&);
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698