RTCPeerConnection.iceGatheringState
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2017年9月.
只读属性 RTCPeerConnection.iceGatheringState
返回一个描述连接的 ICE 收集状态的字符串。比如当 ICE 候选收集完成的时候,你可以通过该属性的变化侦测到。
通过监听 icegatheringstatechange
类型的事件,你可以侦测到该属性的变化。