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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl

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/Source/modules/peerconnection/RTCPeerConnection.idl
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl
index 91e8a8d722196132a61e30db73d350a99e3b8a8a..88643717b67a52208ff134e92088b673f21398a4 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl
@@ -112,10 +112,16 @@ enum RTCIceConnectionState {
// spec, remove it or change it?): https://github.com/w3c/webrtc-stats/issues/116
[CallWith=ScriptState] Promise<RTCStatsReport> getStats();
+ // RTP Media API
+
Guido Urdaneta 2017/07/05 15:37:06 nit: remove this blank line
hbos_chromium 2017/07/06 12:31:38 Done.
// https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-getsenders
[RuntimeEnabled=RTCRtpSender] sequence<RTCRtpSender> getSenders();
// https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-getreceivers
sequence<RTCRtpReceiver> getReceivers();
+ // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-addtrack
+ [RuntimeEnabled=RTCRtpSender, RaisesException] RTCRtpSender addTrack(MediaStreamTrack track, MediaStream... streams);
+ // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-removetrack
+ [RuntimeEnabled=RTCRtpSender, RaisesException] void removeTrack(RTCRtpSender sender);
// https://w3c.github.io/webrtc-pc/#peer-to-peer-data-api
[CallWith=ScriptState, RaisesException] RTCDataChannel createDataChannel(USVString label, optional RTCDataChannelInit dataChannelDict);

Powered by Google App Engine
This is Rietveld 408576698