Issue #2332 - Remove unimplemented and non-spec getStreamById from RTCPeerConnection

Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1318163
This commit is contained in:
Basilisk-Dev 2023-10-05 10:27:12 -04:00 committed by roytam1
commit 7528b07555
2 changed files with 0 additions and 7 deletions

View file

@ -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");

View file

@ -108,8 +108,6 @@ interface RTCPeerConnection : EventTarget {
sequence<MediaStream> getLocalStreams ();
[UnsafeInPrerendering, Deprecated="RTCPeerConnectionGetStreams"]
sequence<MediaStream> getRemoteStreams ();
[UnsafeInPrerendering]
MediaStream? getStreamById (DOMString streamId);
void addStream (MediaStream stream);
// replaces addStream; fails if already added