Skip to content

Commit

Permalink
move url from RTCIceEvent to the RTCIceCandidate
Browse files Browse the repository at this point in the history
aligning with how this is defined in webrtc-stats
  • Loading branch information
fippo committed Sep 22, 2022
1 parent 3d94785 commit 4da6384
Showing 1 changed file with 12 additions and 28 deletions.
40 changes: 12 additions & 28 deletions webrtc.html
Original file line number Diff line number Diff line change
Expand Up @@ -5926,6 +5926,7 @@ <h4>
readonly attribute unsigned short? relatedPort;
readonly attribute DOMString? usernameFragment;
readonly attribute RTCIceServerTransportProtocol? relayProtocol;
readonly attribute DOMString? url;
RTCIceCandidateInit toJSON();
};</pre>
<section>
Expand Down Expand Up @@ -6238,6 +6239,17 @@ <h2>
is only present for local relay candidates.
</p>
</dd>
<dt>
<dfn>url</dfn> of type <span class=
"idlMemberType">DOMString</span>
</dt>
<dd>
<p>
For local candidates of type {{RTCIceCandidateType/"srflx"}} or type
{{RTCIceCandidateType/"relay"}} this is the URL of the ICE server
from which the candidate was obtained.
</p>
</dd>
</dl>
</section>
<section>
Expand Down Expand Up @@ -6586,11 +6598,6 @@ <h4>
When firing an {{RTCPeerConnectionIceEvent}} event that contains an
{{RTCIceCandidate}} object, it MUST include values for both
{{RTCIceCandidate/sdpMid}} and {{RTCIceCandidate/sdpMLineIndex}}.
If the {{RTCIceCandidate}} is of type
{{RTCIceCandidateType/"srflx"}} or type
{{RTCIceCandidateType/"relay"}}, the
{{RTCPeerConnectionIceEvent/url}} property of the event MUST be set
to the URL of the ICE server from which the candidate was obtained.
</p>
<div class="note">
The {{RTCPeerConnection/icecandidate}} event is used for three different types of
Expand Down Expand Up @@ -6640,7 +6647,6 @@ <h4>
interface RTCPeerConnectionIceEvent : Event {
constructor(DOMString type, optional RTCPeerConnectionIceEventInit eventInitDict = {});
readonly attribute RTCIceCandidate? candidate;
readonly attribute DOMString? url;
};</pre>
<section>
<h2>
Expand Down Expand Up @@ -6678,26 +6684,12 @@ <h2>
event containing a <code>null</code> candidate is fired.
</p>
</dd>
<dt data-tests="RTCPeerConnectionIceEvent-constructor.html">
<dfn data-idl="">url</dfn> of type <span class=
"idlAttrType">DOMString</span>, readonly, nullable
</dt>
<dd>
<p>
The {{url}} attribute is the STUN or TURN URL that
identifies the STUN or TURN server used to gather this
candidate. If the candidate was not gathered from a STUN or
TURN server, this parameter will be set to
<code>null</code>.
</p>
</dd>
</dl>
</section>
</div>
<div>
<pre class="idl">dictionary RTCPeerConnectionIceEventInit : EventInit {
RTCIceCandidate? candidate;
DOMString? url;
};</pre>
<section>
<h2>
Expand All @@ -6715,14 +6707,6 @@ <h2>
of the {{RTCPeerConnectionIceEvent}} interface.
</p>
</dd>
<dt data-tests="RTCPeerConnectionIceEvent-constructor.html">
<dfn data-idl="">url</dfn> of type <span class=
"idlMemberType">DOMString</span>, nullable
</dt>
<dd>
The {{url}} attribute is the STUN or TURN URL that identifies
the STUN or TURN server used to gather this candidate.
</dd>
</dl>
</section>
</div>
Expand Down

0 comments on commit 4da6384

Please sign in to comment.