diff --git a/dom/media/PeerConnection.js b/dom/media/PeerConnection.js index 700e371364..622b1f08be 100644 --- a/dom/media/PeerConnection.js +++ b/dom/media/PeerConnection.js @@ -976,11 +976,6 @@ RTCPeerConnection.prototype = { stream.getTracks().forEach(track => this.addTrack(track, stream)); }, - getStreamById: function(id) { - throw new this._win.DOMException("getStreamById not yet implemented", - "NotSupportedError"); - }, - addTrack: function(track, stream) { if (stream.currentTime === undefined) { throw new this._win.DOMException("invalid stream.", "InvalidParameterError"); diff --git a/dom/webidl/RTCPeerConnection.webidl b/dom/webidl/RTCPeerConnection.webidl index 7ec5cc797b..b852d32070 100644 --- a/dom/webidl/RTCPeerConnection.webidl +++ b/dom/webidl/RTCPeerConnection.webidl @@ -108,8 +108,6 @@ interface RTCPeerConnection : EventTarget { sequence getLocalStreams (); [UnsafeInPrerendering, Deprecated="RTCPeerConnectionGetStreams"] sequence getRemoteStreams (); - [UnsafeInPrerendering] - MediaStream? getStreamById (DOMString streamId); void addStream (MediaStream stream); // replaces addStream; fails if already added