RTCPeerConnectionStats:dataChannelsClosed 属性

Baseline 2023
新推出

自 ⁨2023 年 5 月⁩起,此功能可在最新的设备和浏览器版本上使用。此功能可能无法在旧版设备或浏览器上使用。

RTCPeerConnectionStats 字典的 dataChannelsClosed 属性指示在生命周期内已离开 open 状态的唯一 RTCDataChannel 对象的数量。

如果连接的任一端或底层传输关闭,通道将离开 open 状态。请注意,从未处于 open 状态而直接过渡到 closingclosed 状态的通道不计入此数量。

一个正整数,表示在生命周期内已离开 open 状态的唯一 RTCDataChannel 对象的数量。

规范

规范
WebRTC 统计 API 的标识符
# dom-rtcpeerconnectionstats-datachannelsclosed

浏览器兼容性