此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

RTCTransportStats:iceRole 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

RTCTransportStats 字典的 iceRole 属性是指示传输所承担的 ICE 角色(控制端代理的角色,或被控制端代理的角色)的字符串。

该值与底层 RTCDtlsTransport.iceTransportRTCIceTransport.role 属性相同。

字符串,其值可以是以下值之一:controlledcontrollingunknown

规范

Specification
Identifiers for WebRTC's Statistics API
# dom-rtctransportstats-icerole

浏览器兼容性