diff --git a/files/en-us/_redirects.txt b/files/en-us/_redirects.txt index f9a73d557e86785..deef229da83da16 100644 --- a/files/en-us/_redirects.txt +++ b/files/en-us/_redirects.txt @@ -8349,6 +8349,7 @@ /en-US/docs/Web/API/RTCIceCandidatePairStats/circuitBreakerTriggerCoun /en-US/docs/Web/API/RTCIceCandidatePairStats/circuitBreakerTriggerCount /en-US/docs/Web/API/RTCIceCandidatePairStats/contentRequestsSent /en-US/docs/Web/API/RTCIceCandidatePairStats/consentRequestsSent /en-US/docs/Web/API/RTCIceCandidateStats/ip /en-US/docs/Web/API/RTCIceCandidateStats/address +/en-US/docs/Web/API/RTCIceCandidateType /en-US/docs/Web/API/RTCIceCandidate/type /en-US/docs/Web/API/RTCIceConnectionState /en-US/docs/Web/API/RTCPeerConnection/iceConnectionState /en-US/docs/Web/API/RTCIceGatheringState /en-US/docs/Web/API/RTCPeerConnection/iceGatheringState /en-US/docs/Web/API/RTCInboundRtpStreamStats/lastPacketReceivedTimesta /en-US/docs/Web/API/RTCInboundRtpStreamStats/lastPacketReceivedTimestamp diff --git a/files/en-us/_wikihistory.json b/files/en-us/_wikihistory.json index 0d3163c2d286422..28eb4a5d55d3498 100644 --- a/files/en-us/_wikihistory.json +++ b/files/en-us/_wikihistory.json @@ -72276,13 +72276,6 @@ "Sheppy" ] }, - "Web/API/RTCIceCandidateType": { - "modified": "2020-10-15T22:06:15.113Z", - "contributors": [ - "sideshowbarker", - "Sheppy" - ] - }, "Web/API/RTCIceComponent": { "modified": "2020-10-15T22:06:08.263Z", "contributors": [ diff --git a/files/en-us/web/api/rtcicecandidate/index.html b/files/en-us/web/api/rtcicecandidate/index.html index 36c72510b0331a1..e1d6af816cfd8f4 100644 --- a/files/en-us/web/api/rtcicecandidate/index.html +++ b/files/en-us/web/api/rtcicecandidate/index.html @@ -64,7 +64,7 @@

Properties

{{domxref("RTCIceCandidate.tcpType", "tcpType")}} {{readonlyInline}}
If protocol is "tcp"tcpType represents the type of TCP candidate. Otherwise, tcpType is null.
{{domxref("RTCIceCandidate.type", "type")}} {{readonlyInline}}
-
A {{domxref("DOMString")}} indicating the type of candidate as one of the strings from the {{domxref("RTCIceCandidateType")}} enumerated type.
+
A {{domxref("DOMString")}} indicating the type of candidate as one of the strings listed on RTCIceCandidate.type.
{{domxref("RTCIceCandidate.usernameFragment", "usernameFragment")}} {{ReadOnlyInline}}
A {{domxref("DOMString")}} containing a randomly-generated username fragment ("ice-ufrag") which ICE uses for message integrity along with a randomly-generated password ("ice-pwd"). You can use this string to verify generations of ICE generation; each generation of the same ICE process will use the same usernameFragment, even across ICE restarts.
diff --git a/files/en-us/web/api/rtcicecandidate/type/index.html b/files/en-us/web/api/rtcicecandidate/type/index.html index a2c5f57aabda2b1..1a4fc037b80ab12 100644 --- a/files/en-us/web/api/rtcicecandidate/type/index.html +++ b/files/en-us/web/api/rtcicecandidate/type/index.html @@ -35,10 +35,20 @@

Syntax

Value

-

A {{domxref("DOMString")}} whose value is one of those defined by the - {{domxref("RTCIceCandidateType")}} enumerated type.

- -

{{page("/en-US/docs/Web/API/RTCIceCandidateType", "Values")}}

+

A {{domxref("DOMString")}} whose value is one of those defined below. These candidate types are listed in order of priority; the higher in the list they are, the more efficient they are.

+ +
+
+
host
+
The candidate is a host candidate, whose IP address as specified in the {{domxref("RTCIceCandidate.ip")}} property is in fact the true address of the remote peer.
+
srflx
+
The candidate is a server reflexive candidate; the ip indicates an intermediary address assigned by the {{Glossary("STUN")}} server to represent the candidate's peer anonymously.
+
prflx
+
The candidate is a peer reflexive candidate; the ip is an intermediary address assigned by the STUN server to represent the candidate's peer anonymously.
+
relay
+
The candidate is a relay candidate, obtained from a {{Glossary("TURN")}} server. The relay candidate's IP address is an address the TURN server uses to forward the media between the two peers.
+
+

If type is null, that information was missing from the {{domxref("RTCIceCandidate.candidate", "candidate")}}'s a-line, which will cause diff --git a/files/en-us/web/api/rtcicecandidatestats/candidatetype/index.html b/files/en-us/web/api/rtcicecandidatestats/candidatetype/index.html index 6853a22d0b86c69..37cb8fc3306c843 100644 --- a/files/en-us/web/api/rtcicecandidatestats/candidatetype/index.html +++ b/files/en-us/web/api/rtcicecandidatestats/candidatetype/index.html @@ -29,9 +29,7 @@

Syntax

Value

-

A {{domxref("DOMString")}} whose value is one of the strings found in the - {{domxref("RTCIceCandidateType")}} enumerated - type:{{page("/en-US/docs/Web/API/RTCIceCandidateType", "value-list")}}

+

A {{domxref("DOMString")}} whose value is one of the strings found in RTCIceCandidate.type.

Specifications

diff --git a/files/en-us/web/api/rtcicecandidatestats/index.html b/files/en-us/web/api/rtcicecandidatestats/index.html index 86fd52f09f3af60..f98070fa0cc5d4b 100644 --- a/files/en-us/web/api/rtcicecandidatestats/index.html +++ b/files/en-us/web/api/rtcicecandidatestats/index.html @@ -28,7 +28,7 @@

Properties

{{domxref("RTCIceCandidateStats.address", "address")}} {{optional_inline}}
A string containing the address of the candidate. This value may be an IPv4 address, an IPv6 address, or a fully-qualified domain name. This property was previously named ip and only accepted IP addresses.
{{domxref("RTCIceCandidateStats.candidateType", "candidateType")}} {{optional_inline}}
-
A string matching one of the values in the {{domxref("RTCIceCandidateType")}} enumerated type, indicating what kind of candidate the object provides statistics for.
+
A string matching one of the values in RTCIceCandidate.type, indicating what kind of candidate the object provides statistics for.
{{domxref("RTCIceCandidateStats.deleted", "deleted")}} {{optional_inline}}
A Boolean value indicating whether or not the candidate has been released or deleted; the default value is false. For local candidates, it's value is true if the candidate has been deleted or released. For host candidates, true means that any network resources (usually a network socket) associated with the candidate have already been released. For {{Glossary("TURN")}} candidates, the TURN allocation is no longer active for deleted candidates. This property is not present for remote candidates.
{{domxref("RTCIceCandidateStats.networkType", "networkType")}} {{optional_inline}}
diff --git a/files/en-us/web/api/rtcicecandidatetype/index.html b/files/en-us/web/api/rtcicecandidatetype/index.html deleted file mode 100644 index cb2ef7294b08a54..000000000000000 --- a/files/en-us/web/api/rtcicecandidatetype/index.html +++ /dev/null @@ -1,49 +0,0 @@ ---- -title: RTCIceCandidateType -slug: Web/API/RTCIceCandidateType -tags: - - API - - Enum - - Enumerated Type - - ICE - - Media - - RTCIceCandidateType - - Reference - - SDP - - Type - - WebRTC - - WebRTC API -browser-compat: api.RTCIceCandidateType ---- -
{{APIRef("WebRTC")}}
- -

The WebRTC API's RTCIceCandidateType enumerated type provides a set of {{domxref("DOMString")}} values representing the types of {{Glossary("ICE")}} candidate that can arrive. These strings are taken directly from the candidate a-line in {{Glossary("SDP")}}.

- -

Values

- -

These candidate types are listed in order of priority; the higher in the list they are, the more efficient they are.

- -
-
-
host
-
The candidate is a host candidate, whose IP address as specified in the {{domxref("RTCIceCandidate.ip")}} property is in fact the true address of the remote peer.
-
srflx
-
The candidate is a server reflexive candidate; the ip indicates an intermediary address assigned by the {{Glossary("STUN")}} server to represent the candidate's peer anonymously.
-
prflx
-
The candidate is a peer reflexive candidate; the ip is an intermediary address assigned by the STUN server to represent the candidate's peer anonymously.
-
relay
-
The candidate is a relay candidate, obtained from a {{Glossary("TURN")}} server. The relay candidate's IP address is an address the TURN server uses to forward the media between the two peers.
-
-
- -

Usage notes

- -

The RTCIceCandidateType enumeration is used by the {{domxref("RTCIceCandidate.type", "type")}} property of {{domxref("RTCIceCandidate")}} objects, as well as when reporting statistics on candidates using {{domxref("RTCIceCandidateStats.candidateType")}}.

- -

Specifications

- -{{Specifications}} - -

Browser compatibility

- -

{{Compat}}