RTCPeerConnectionStats:dataChannelsClosed 属性
RTCPeerConnectionStats 字典的 dataChannelsClosed 属性指示在生命周期内已离开 open 状态的唯一 RTCDataChannel 对象的数量。
如果连接的任一端或底层传输关闭,通道将离开 open 状态。请注意,从未处于 open 状态而直接过渡到 closing 或 closed 状态的通道不计入此数量。
值
一个正整数,表示在生命周期内已离开 open 状态的唯一 RTCDataChannel 对象的数量。
规范
| 规范 |
|---|
| WebRTC 统计 API 的标识符 # dom-rtcpeerconnectionstats-datachannelsclosed |
浏览器兼容性
加载中…