这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
RTCPeerConnectionIceEvent()
构造函数创建新
RTCPeerConnectionIceEvent
.
var event = new RTCPeerConnectionIceEvent(type, options);
type
DOMString
containing the name of the event, like
"icecandidate"
.
选项
RTCPeerConnectionInit
, which may contain one or more of the following fields:
"candidate"
(optional, default is
null
): A
RTCIceCandidate
representing the ICE candidate being concerned by the event. If
null
, the event indicates the end of candidate gathering.
"url"
(optional, default is
null
): The URL of the STUN or TURN server which was used to gather the candidate. If the candidate was not gathered by a
STUN
or
TURN
server, this value must be
null
.
"bubbles"
(optional, default is
false
): Inherited from
EventInit()
, this Boolean option indicates whether or not the event must bubble.
"cancelable"
(optional, default is
false
, inherited from
EventInit()
, this Boolean indicates whether or not the event can be canceled.
A newly-created
RTCPeerConnectionIceEvent
, configured as specified in the provided options.
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCPeerConnectionIceEvent()' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
RTCPeerConnectionIceEvent()
构造函数
|
Chrome 56 | Edge ≤18 | Firefox Yes | IE No | Opera Yes | Safari ? | WebView Android 56 | Chrome Android 56 | Firefox Android Yes | Opera Android Yes | Safari iOS ? | Samsung Internet Android 6.0 |
完整支持
不支持
兼容性未知
实验。期望将来行为有所改变。
RTCPeerConnection
.
RTCPeerConnectionIceEvent
RTCPeerConnectionIceEvent()
MediaDevices.getUserMedia()
Navigator.mediaDevices
RTCCertificate
RTCDTMFSender
RTCDTMFToneChangeEvent
RTCDataChannel
RTCDataChannelEvent
RTCDtlsTransport
RTCErrorEvent
RTCIceCandidate
RTCIceTransport
RTCPeerConnection
RTCPeerConnectionIceErrorEvent
RTCRtpReceiver
RTCRtpSender
RTCRtpTransceiver
RTCSctpTransport
RTCSessionDescription
RTCStatsEvent
RTCStatsReport
RTCTrackEvent