mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +09:00
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:
parent
465ce802d1
commit
7528b07555
2 changed files with 0 additions and 7 deletions
|
|
@ -976,11 +976,6 @@ RTCPeerConnection.prototype = {
|
||||||
stream.getTracks().forEach(track => this.addTrack(track, stream));
|
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) {
|
addTrack: function(track, stream) {
|
||||||
if (stream.currentTime === undefined) {
|
if (stream.currentTime === undefined) {
|
||||||
throw new this._win.DOMException("invalid stream.", "InvalidParameterError");
|
throw new this._win.DOMException("invalid stream.", "InvalidParameterError");
|
||||||
|
|
|
||||||
|
|
@ -108,8 +108,6 @@ interface RTCPeerConnection : EventTarget {
|
||||||
sequence<MediaStream> getLocalStreams ();
|
sequence<MediaStream> getLocalStreams ();
|
||||||
[UnsafeInPrerendering, Deprecated="RTCPeerConnectionGetStreams"]
|
[UnsafeInPrerendering, Deprecated="RTCPeerConnectionGetStreams"]
|
||||||
sequence<MediaStream> getRemoteStreams ();
|
sequence<MediaStream> getRemoteStreams ();
|
||||||
[UnsafeInPrerendering]
|
|
||||||
MediaStream? getStreamById (DOMString streamId);
|
|
||||||
void addStream (MediaStream stream);
|
void addStream (MediaStream stream);
|
||||||
|
|
||||||
// replaces addStream; fails if already added
|
// replaces addStream; fails if already added
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue