diff --git a/files/zh-cn/_redirects.txt b/files/zh-cn/_redirects.txt index 15119d9f1e481c..aaddc6d34dffc6 100644 --- a/files/zh-cn/_redirects.txt +++ b/files/zh-cn/_redirects.txt @@ -1736,6 +1736,8 @@ /zh-CN/docs/Web/API/RTCPeerConnection/ondatachannel /zh-CN/docs/Web/API/RTCPeerConnection/datachannel_event /zh-CN/docs/Web/API/RTCPeerConnection/onicecandidate /zh-CN/docs/Web/API/RTCPeerConnection/icecandidate_event /zh-CN/docs/Web/API/RTCPeerConnection/ontrack /zh-CN/docs/Web/API/RTCPeerConnection/track_event +/zh-CN/docs/Web/API/RTCStats /zh-CN/docs/Web/API/RTCStatsReport +/zh-CN/docs/Web/API/RTCStats/id /zh-CN/docs/Web/API/RTCStatsReport /zh-CN/docs/Web/API/RandomSource/getRandomValues /zh-CN/docs/Web/API/Crypto/getRandomValues /zh-CN/docs/Web/API/Resource_Timing_API /zh-CN/docs/Web/API/Performance_API/Resource_timing /zh-CN/docs/Web/API/Resource_Timing_API/Using_the_Resource_Timing_API /zh-CN/docs/Web/API/Performance_API/Resource_timing diff --git a/files/zh-cn/_wikihistory.json b/files/zh-cn/_wikihistory.json index 916bbd06da2f75..d86d7ea20dcce0 100644 --- a/files/zh-cn/_wikihistory.json +++ b/files/zh-cn/_wikihistory.json @@ -13218,14 +13218,6 @@ "modified": "2019-09-10T06:45:22.765Z", "contributors": ["IsolatedTraveler", "SolitudeRA"] }, - "Web/API/RTCStats": { - "modified": "2020-10-15T22:31:33.896Z", - "contributors": ["Sheppy"] - }, - "Web/API/RTCStats/id": { - "modified": "2020-10-15T22:31:33.589Z", - "contributors": ["alexwen.cn"] - }, "Web/API/RTCStatsReport": { "modified": "2020-10-15T22:31:34.788Z", "contributors": ["alexwen.cn"] diff --git a/files/zh-cn/web/api/rtcstats/id/index.md b/files/zh-cn/web/api/rtcstats/id/index.md deleted file mode 100644 index 3f94ac1e424895..00000000000000 --- a/files/zh-cn/web/api/rtcstats/id/index.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -title: RTCStats.id -slug: Web/API/RTCStats/id ---- - -{{APIRef("WebRTC")}} - -{{domxref("RTCStats")}} 字典的 **`id`** 属性是一个字符串,用于唯一标识此 `RTCStats` 对象提供统计信息的对象。使用 `id`, 可以关联两个或多个基于 `RTCStats` 的对象,以便随时监视给定 WebRTC 对象的统计信息,例如一个 {{Glossary("RTP")}} 流,{{domxref("RTCPeerConnection")}},或 {{domxref("RTCDataChannel")}}。 - -## 语法 - -```plain -var id = RTCStats.id; -``` - -### 值 - -一个 {{domxref("DOMString")}},用于唯一标识基于此 `RTCStats` 对象提供统计信息的对象。 - -ID 字符串的格式不是由规范定义的,因此无法可靠地对字符串的内容进行任何假设。也不能假设对于给定的对象类型,字符串的格式将保持不变。 - -## 规范 - -{{Specifications}} - -## 浏览器兼容性 - -{{Compat}} diff --git a/files/zh-cn/web/api/rtcstats/index.md b/files/zh-cn/web/api/rtcstats/index.md deleted file mode 100644 index 37dd47671c620f..00000000000000 --- a/files/zh-cn/web/api/rtcstats/index.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: RTCStats -slug: Web/API/RTCStats ---- - -{{APIRef("WebRTC")}} - -The **`RTCStats`** dictionary is the basic statistics object used by WebRTC's statistics monitoring model, providing the properties required of all statistics data objects. Specific classes of statistic are defined as dictionaries based on `RTCStats`. For example, statistics about a received {{Glossary("RTP")}} stream are represented by {{domxref("RTCReceivedRtpStreamStats")}}. - -## Properties - -- {{domxref("RTCStats.id", "id")}} - - : A {{domxref("DOMString")}} which uniquely identifies the object which was inspected to produce this object based on `RTCStats`. -- {{domxref("RTCStats.timestamp", "timestamp")}} - - : A {{domxref("DOMHighResTimeStamp")}} object indicating the time at which the sample was taken for this statistics object. -- {{domxref("RTCStats.type", "type")}} - - : A {{domxref("DOMString")}} indicating the type of statistics the object contains, taken from the enum type {{domxref("RTCStatsType")}}. - -## The statistics type hierarchy - -The various dictionaries that are used to define the contents of the objects that contain each of the various types of statistics for WebRTC are structured in such a way that they build upon the core `RTCStats` dictionary, each layer adding more relevant information. - -- {{domxref("RTCStats")}} is the foundation of all WebRTC statistics objects - - - {{domxref("RTCRtpStreamStats")}} adds to `RTCStats` information that applies to all RTP endpoints (that is, both local and remote endpoints, and regardless of whether the endpoint is a sender or a receiver) - - - {{domxref("RTCReceivedRtpStreamStats")}} further adds statistics measured at the receiving end of an RTP stream, regardless of whether it's local or remote. - - - {{domxref("RTCInboundRtpStreamStats")}} contains statistics that can only be measured on a receiver at the local end of the RTP connection. - - {{domxref("RTCOutboundRtpStreamStats")}} contains statistics related to the receiver at the remote end of the RTP stream. - - - {{domxref("RTCSentRtpStreamStats")}} offers statistics related to the sending end of an RTP stream. - - - {{domxref("RTCOutboundRtpStreamStats")}} contains statistics about the local sending endpoint of an RTP stream. - - {{domxref("RTCRemoteOutboundRtpStreamStats")}} holds statistics related to the remote sending end an RTP stream. - -## Specifications - -{{Specifications}} - -## Browser compatibility - -{{Compat}} diff --git a/files/zh-cn/web/api/rtcstatsreport/index.md b/files/zh-cn/web/api/rtcstatsreport/index.md index 492d2b4373ab2e..5e51f0004026ab 100644 --- a/files/zh-cn/web/api/rtcstatsreport/index.md +++ b/files/zh-cn/web/api/rtcstatsreport/index.md @@ -17,11 +17,11 @@ slug: Web/API/RTCStatsReport ### 所有统计类别共有的属性 -所有 WebRTC 统计对象都基于 {{domxref("RTCStats")}} 字典,该字典提供了最基本的信息:时间戳、统计类型字符串和唯一标识数据源的 ID。 +所有 WebRTC 统计对象都基于 `RTCStats` 字典,该字典提供了最基本的信息:时间戳、统计类型字符串和唯一标识数据源的 ID。 ### 统计类别 -{{domxref("RTCStats.type", "type")}} 给出了对象所代表的统计类别的名称。以及如何查找你需要的特定数据的类型。 +`type` 值给出了对象所代表的统计类别的名称。以及如何查找你需要的特定数据的类型。 ## 规范