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

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

Issue 2951713002: RTCPeerConnection.addTrack and removeTrack added (behind flag) (Closed)
Patch Set: Created 3 years, 5 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/WebRTCPeerConnectionHandler.h
diff --git a/third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h b/third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h
index eefeb6144256d6018fa8e1041a2351804825c9ae..70b2730784e8f25f88013115cc73aead840d5ca6 100644
--- a/third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h
+++ b/third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h
@@ -103,6 +103,14 @@ class WebRTCPeerConnectionHandler {
// webrtc-layer receivers, multiple |WebRTCRtpReceiver| objects referencing
// the same webrtc-layer receiver have the same |id|.
virtual WebVector<std::unique_ptr<WebRTCRtpReceiver>> GetReceivers() = 0;
+ // Adds the track to the peer connection, returning the resulting sender on
+ // success and null on failure.
+ virtual std::unique_ptr<WebRTCRtpSender> AddTrack(
+ const WebMediaStreamTrack&,
+ const WebVector<WebMediaStream>&) = 0;
+ // Removes the sender, returning whether successful. On success, the sender's
+ // track must have been set to null.
+ virtual bool RemoveTrack(WebRTCRtpSender*) = 0;
virtual WebRTCDTMFSenderHandler* CreateDTMFSender(
const WebMediaStreamTrack&) = 0;
virtual void Stop() = 0;

Powered by Google App Engine
This is Rietveld 408576698