WebRTC API's RTCIceProtocol enumerated type provides a set of DOMString values representing the names of the transport protocols ICE candidates can use. These strings are taken directly from the candidate a-line in SDP.

tcp
The candidate, if selected, would use TCP as the transport protocol for its data. The tcpType property provides additional information about the kind of TCP candidate represented by the object.
udp
The candidate will use the UDP transport protocol for its data. This is the preferred protocol for media interactions because of its better performance profile.

用法注意事项

RTCIceProtocol type is used by the 协议 property of RTCIceCandidate 对象。

规范

规范 状态 注释
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCIceProtocol' in that specification.
候选推荐 初始定义。

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.

No compatibility data found. Please contribute data for "api.RTCIceProtocol" (depth: 1) to the MDN 兼容性数据存储库 .

元数据

  • 最后修改: