diff --git a/files/en-us/_redirects.txt b/files/en-us/_redirects.txt index ca22c39f6665cea..347e1e85db829d1 100644 --- a/files/en-us/_redirects.txt +++ b/files/en-us/_redirects.txt @@ -8901,6 +8901,7 @@ /en-US/docs/Web/API/RTCIceTransport/onstatechange /en-US/docs/Web/API/RTCIceTransport/statechange_event /en-US/docs/Web/API/RTCIceTransportState /en-US/docs/Web/API/RTCIceTransport/state /en-US/docs/Web/API/RTCInboundRtpStreamStats/lastPacketReceivedTimesta /en-US/docs/Web/API/RTCInboundRtpStreamStats/lastPacketReceivedTimestamp +/en-US/docs/Web/API/RTCNetworkType /en-US/docs/Web/API/RTCIceCandidateStats/networkType /en-US/docs/Web/API/RTCOfferAnswerOptions /en-US/docs/Web/API/RTCPeerConnection/createAnswer /en-US/docs/Web/API/RTCOfferAnswerOptions/voiceActivityDetection /en-US/docs/Web/API/RTCPeerConnection/createAnswer /en-US/docs/Web/API/RTCOfferOptions /en-US/docs/Web/API/RTCPeerConnection/createOffer diff --git a/files/en-us/_wikihistory.json b/files/en-us/_wikihistory.json index 0678f11615a419a..97b6e5a0e083226 100644 --- a/files/en-us/_wikihistory.json +++ b/files/en-us/_wikihistory.json @@ -69069,12 +69069,6 @@ "Sheppy" ] }, - "Web/API/RTCNetworkType": { - "modified": "2020-10-15T22:15:52.187Z", - "contributors": [ - "Sheppy" - ] - }, "Web/API/RTCOutboundRtpStreamStats": { "modified": "2020-10-15T22:17:14.806Z", "contributors": [ diff --git a/files/en-us/web/api/rtcicecandidatestats/index.md b/files/en-us/web/api/rtcicecandidatestats/index.md index 22156bf1ccd8361..cc15e611f1ae0ca 100644 --- a/files/en-us/web/api/rtcicecandidatestats/index.md +++ b/files/en-us/web/api/rtcicecandidatestats/index.md @@ -31,7 +31,7 @@ The WebRTC API's **`RTCIceCandidateStats`** dictionary provides statistics relat - {{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}} - - : A string from the {{domxref("RTCNetworkType")}} enumerated type which indicates the type of interface used for a local candidate. This property is only present for local candidates. + - : A string which indicates the type of interface used for a local candidate. This property is only present for local candidates. - {{domxref("RTCIceCandidateStats.port", "port")}} {{optional_inline}} - : The network port number used by the candidate. - {{domxref("RTCIceCandidateStats.priority", "priority")}} {{optional_inline}} diff --git a/files/en-us/web/api/rtcicecandidatestats/networktype/index.md b/files/en-us/web/api/rtcicecandidatestats/networktype/index.md index beff763fbba31bb..73ef3d066ffa199 100644 --- a/files/en-us/web/api/rtcicecandidatestats/networktype/index.md +++ b/files/en-us/web/api/rtcicecandidatestats/networktype/index.md @@ -37,13 +37,26 @@ networkType = rtcIceCandidateStats.networkType; ### Value -A {{domxref("DOMString")}} whose value is taken from the {{domxref("RTCNetworkType")}} -enumerated type. The string indicates the type of network connection that the described -candidate would use to communicate with the other peer. +A string which indicates the type of network connection that the described candidate would use to communicate with the other peer. The permitted values are: -{{page("/en-US/docs/Web/API/RTCNetworkType", "Values")}} +- `bluetooth` + - : A Bluetooth connection is used by the described connection. +- `cellular` + - : The connection uses a cellular data service to connect. This includes all cellular data services including EDGE (2G), HSPA (3G), LTE (4G), and NR (5G). +- `ethernet` + - : The described connection uses an Ethernet network. +- `wifi` + - : The described connection uses WiFi. +- `wimax` + - : The described connection uses a {{interwiki("wikipedia", "WiMAX")}} network. +- `vpn` + - : The connection uses a Virtual Private Network (VPN). The VPN obscures the underlying network type, which is not discernible. +- `unknown` + - : The user's browser is unable or unwilling to identify the underlying connection technology used by the described connection. This may be because the browser isn't able to determine the network type for some reason or it may be intentionally getting obscured for security reasons, such as to avoid {{interwiki("wikipedia", "device fingerprinting")}}. + +> **Note:** Keep in mind that the specified value only reflects the initial connection between the local peer and the next hop along the network toward reaching the remote peer. For example, if the `networkType` is `wifi` but the user is connected using a cellular hotspot, the connection will be bottlenecked by the underlying cellular network (and any other networks between the two peers). ## Example diff --git a/files/en-us/web/api/rtcnetworktype/index.md b/files/en-us/web/api/rtcnetworktype/index.md deleted file mode 100644 index 7561bf6e30041f8..000000000000000 --- a/files/en-us/web/api/rtcnetworktype/index.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: RTCNetworkType -slug: Web/API/RTCNetworkType -tags: - - API - - Connection - - Enum - - Enumerated Type - - Enumeration - - Network - - RTCNetworkType - - Reference - - Statistics - - Stats - - Type - - WebRTC - - WebRTC API - - networkType - - Deprecated -browser-compat: api.RTCNetworkType ---- -{{deprecated_header}}{{APIRef("WebRTC")}} - -The [WebRTC](/en-US/docs/Web/API/WebRTC_API) **`RTCNetworkType`** enumerated type defines a set of strings used to identify the type of network used by a connection between two peers. - -This type is used as the value or the following properties: - -- {{domxref("RTCIceCandidate")}}'s {{domxref("RTCIceCandidateStats.networkType", "networkType")}} -- {{domxref("RTCStunServerConnectionStats")}}'s {{domxref("RTCStunServerConnectionStats.networkType", "networkType")}} - -## Values - -- `bluetooth` - - : A Bluetooth connection is used by the described connection. -- `cellular` - - : The connection uses a cellular data service to connect. This includes all cellular data services including EDGE (2G), HSPA (3G), LTE (4G), and NR (5G). -- `ethernet` - - : The described connection uses an Ethernet network. -- `wifi` - - : The described connection uses WiFi. -- `wimax` - - : The described connection uses a {{interwiki("wikipedia", "WiMAX")}} network. -- `vpn` - - : The connection uses a Virtual Private Network (VPN). The VPN obscures the underlying network type, which is not discernible. -- `unknown` - - : The user's browser is unable or unwilling to identify the underlying connection technology used by the described connection. This may be because the browser isn't able to determine the network type for some reason or it may be intentionally getting obscured for security reasons, such as to avoid {{interwiki("wikipedia", "device fingerprinting")}}. - -> **Note:** Keep in mind that the specified value only reflects the initial connection between the local peer and the next hop along the network toward reaching the remote peer. For example, if the `networkType` is `wifi` but the user is connected using a cellular hotspot, the connection will be bottlenecked by the underlying cellular network (and any other networks between the two peers). - -## Specifications - -{{Specifications}} - -## Browser compatibility - -{{Compat}} diff --git a/files/jsondata/GroupData.json b/files/jsondata/GroupData.json index 7a0851ce97ea0df..bce5fc120d3ffe0 100644 --- a/files/jsondata/GroupData.json +++ b/files/jsondata/GroupData.json @@ -1968,7 +1968,6 @@ "RTCStatsType", "RTCCodecType", "RTCQualityLimitationReason", - "RTCNetworkType", "RTCStatsIceCandidatePairState" ], "methods": ["MediaDevices.getUserMedia()"],