Skip to content

Commit

Permalink
add url attribute to RTCIceCandidate
Browse files Browse the repository at this point in the history
https://w3c.github.io/webrtc-stats/#dom-rtcicecandidatestats-url

aligning with how this is defined in webrtc-stats
and add deprecation note to the url attribute on the RTCIceEvent
  • Loading branch information
fippo committed Oct 25, 2022
1 parent 3d94785 commit b87cc57
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 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 @@ -6690,6 +6702,10 @@ <h2>
TURN server, this parameter will be set to
<code>null</code>.
</p>
<p class="note">
This attribute is deprecated; it exists for legacy compatibility reasons only.
Prefer the candidate {{RTCIceCandidate/url}}.
</p>
</dd>
</dl>
</section>
Expand Down

0 comments on commit b87cc57

Please sign in to comment.