This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
The RTCPeerConnectionIceEvent()
constructor creates a new RTCPeerConnectionIceEvent
.
var event = new RTCPeerConnectionIceEvent(type, options);
type
DOMString
containing the name of the event, like "icecandidate"
.options
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.
Specification | Status | Comment |
---|---|---|
WebRTC 1.0: Real-time Communication Between Browsers The definition of 'RTCPeerConnectionIceEvent()' in that specification. | Working Draft | Initial definition. |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 56[1] | (Yes) | No support | (Yes) | ? |
Feature | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | 56[1] | 56[1] | ? | No support | ? | ? |
Only the candidate
option is supported.
RTCPeerConnection
.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/RTCPeerConnectionIceEvent