RTCPeerConnectionIceErrorEvent
interface—based upon the
事件
interface—provides details pertaining to an
ICE
error announced by sending an
icecandidateerror
event to the
RTCPeerConnection
对象。
RTCPeerConnectionIceErrorEvent()
RTCPeerConnectionIceErrorEvent
object, with its
type
and other properties initialized as specified in the parameters. You will not normally create an object of this type yourself.
RTCPeerConnectionIceErrorEvent
interface includes the properties found on the
事件
interface, as well as the following properties:
address
只读
DOMString
providing the local IP address used to communicate with the
STUN
or
TURN
server being used to negotiate the connection, or
null
if the local IP address has not yet been exposed as part of a local ICE candidate.
errorCode
只读
icegatheringstate
is
gathering
.
errorText
只读
DOMString
containing the STUN reason text returned by the STUN or TURN server. If communication with the STUN or TURN server couldn't be established at all, this string will be a browser-specific string explaining the error.
port
只读
address
.
null
if the connection hasn't been established (that is, if
address
is
null
).
url
只读
DOMString
indicating the URL of the STUN or TURN server with which the error occurred.
RTCPeerConnectionIceErrorEvent
has no methods other than any provided by the parent interface,
事件
.
TBD
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCPeerConnectionIceErrorEvent' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
RTCPeerConnectionIceErrorEvent
|
Chrome ? | Edge ? | Firefox ? | IE 不支持 No | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
errorCode
|
Chrome ? | Edge ? | Firefox ? | IE 不支持 No | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
errorText
|
Chrome ? | Edge ? | Firefox ? | IE 不支持 No | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
hostCandidate
|
Chrome ? | Edge ? | Firefox ? | IE 不支持 No | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
url
|
Chrome ? | Edge ? | Firefox ? | IE 不支持 No | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
不支持
兼容性未知