Skip to content

Commit

Permalink
Allow null candidate in RTCPeerConnection.addIceCandidate (#1739)
Browse files Browse the repository at this point in the history
Co-authored-by: saschanaz <[email protected]>
  • Loading branch information
silverlyra and saschanaz authored Aug 23, 2024
1 parent 21ecb34 commit 4ecb496
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18158,9 +18158,9 @@ interface RTCPeerConnection extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingState) */
readonly signalingState: RTCSignalingState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addIceCandidate) */
addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
addIceCandidate(candidate?: RTCIceCandidateInit | null): Promise<void>;
/** @deprecated */
addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
addIceCandidate(candidate: RTCIceCandidateInit | null, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTrack) */
addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTransceiver) */
Expand Down
14 changes: 14 additions & 0 deletions inputfiles/overridingTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2169,7 +2169,21 @@
"method": {
"addIceCandidate": {
"signature": {
"0": {
"param": [
{
"name": "candidate",
"nullable": true
}
]
},
"1": {
"param": [
{
"name": "candidate",
"nullable": true
}
],
"deprecated": true
}
}
Expand Down

0 comments on commit 4ecb496

Please sign in to comment.