Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove RTCNetworkType dictionary #13913

Merged
merged 1 commit into from
Mar 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcicecandidatestats/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
21 changes: 17 additions & 4 deletions files/en-us/web/api/rtcicecandidatestats/networktype/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
56 changes: 0 additions & 56 deletions files/en-us/web/api/rtcnetworktype/index.md

This file was deleted.

1 change: 0 additions & 1 deletion files/jsondata/GroupData.json
Original file line number Diff line number Diff line change
Expand Up @@ -1968,7 +1968,6 @@
"RTCStatsType",
"RTCCodecType",
"RTCQualityLimitationReason",
"RTCNetworkType",
"RTCStatsIceCandidatePairState"
],
"methods": ["MediaDevices.getUserMedia()"],
Expand Down