diff --git a/index.html b/index.html index 074e232..93288ce 100644 --- a/index.html +++ b/index.html @@ -135,6 +135,7 @@
dictionary RTCIceGatherOptions { RTCIceTransportPolicy gatherPolicy = "all"; sequence<RTCIceServer> iceServers; + sequence<DOMString>? networkIds; };
networkIds
of type sequence<DOMString>If set and non-null, ICE gathering will be limited to the network + interfaces specfied by the network IDs (obtained by + calling getLocalCandidates().
+onicecandidate
of type onlocalcandidate
of type EventHandlerThis event handler utilizes the event handler event type
icecandidate
.
onchecksent
of type EventHandlerThis event handler utilizes the event handler event type
+ icecheck
.
+
void
+ removeLocalCandidate
Removes the given local candidate. This will trigger + the removal of all candidate pairs with the given local + candidate, the prevention of pairing with the given + local candidate, and prevention of any network activity + using the given local candidate.
+Parameter | +Type | +Nullable | +Optional | +Description | +
---|---|---|---|---|
localCandidate | +RTCIceCandidate |
+ ✘ | +✘ | ++ |
void
+ retainLocalCandidate
Cause the RTCIceTransport
to
+ not automatically remove the local candidate due
+ to ICE pruning (such as when a candidate pair with
+ a different local candidate is selected). However,
+ the local candidate may be removed if it completely
+ fails (such as a network interface going down).
Parameter | +Type | +Nullable | +Optional | +Description | +
---|---|---|---|---|
localCandidate | +RTCIceCandidate |
+ ✘ | +✘ | ++ |
void
+ getCandidatePairs()
Return all the candidate pairs.
+sequence<RTCIceCandidatePair>
+ [Exposed=Window] +partial dictionary RTCIceCandidateInit { + attribute DOMString? networkId; + // TODO: Add reference to https://wicg.github.io/netinfo/#dom-networkinformation + attribute NetworkInformation? networkInfo; +};+
networkId
of type DOMStringnetworkInfo
of type NetworkInformation[Exposed=Window] +partial interface RTCIceCandidatePairInt { + void setMinCheckInterval(double seconds); + void setFrozen(boolean frozen); + void select(); + Promise+nominate(); + Promise waitForReceiveTimeout(double seconds); +};
setMinCheckInterval
Causes the RTCIceTransport
to send ICE checks using
+ this candidate pair no more frequently than indicated by
+ the given interval (given in seconds). The
+ RTCIceTransport
may always send less frequently than
+ specified.
Parameter | +Type | +Nullable | +Optional | +Description | +
---|---|---|---|---|
seconds | +double |
+ ✘ | +✘ | ++ |
void
+ setFrozen
Freezes or unfreezes the candidate pair. When frozen, + no ICE checks will be sent over it.
+Parameter | +Type | +Nullable | +Optional | +Description | +
---|---|---|---|---|
frozen | +boolean |
+ ✘ | +✘ | ++ |
void
+ select
Selects the candidate pair. Once this is called
+ once, the RTCIceTransport
+ will no longer automatically select candidate
+ pairs and the only way to change the selected
+ candidate pair will be calling select() again
+ will change the selected candidate pair again.
void
+ nominate
Nominates the candidate pair by sending a nomination + to the remote side. Resolves the returned promise once + the nomination has been sent or once it has been + determined that it is impossible to nominate (for + example, if aggressive nomination and renomination are + both unavailable due to the ICE options and a nomination + has already been sent.
+Promise<boolean>
+ waitForReceiveTimeout
Wait until no network pacekts have been received for
+ more than the given timeout. This allows the detection
+ of network outage. If called a second time on the same
+ RTCIceTransport
, the previous
+ call's promise is rejected immediately. Thus only
+ one pending wait per RTCIceTransport
+ is allowed at a time.
Parameter | +Type | +Nullable | +Optional | +Description | +
---|---|---|---|---|
seconds | +double |
+ ✘ | +✘ | ++ |
void
+ [Exposed=Window] +interface RTCIceCheck { + readonly attribute Promise+response; +};
response
of type booleanA promise that resolves when the
+ RTCIceTransport
+ receives a response to the check. Resolves with a true
+ value if the response is successful and false if the
+ response was an error.
RTCIceCandidate
is made available to the
script.icecheck
RTCIceCheckEvent
RTCIceCheck
is made available to the
+ script.The editors wish to thank the Working Group chairs and Team Contact, - Harald Alvestrand, Stefan Håkansson, Bernard Aboba and Dominique + Harald Alvestrand, Jan-Ivar Bruaroey, Stefan Håkansson and Dominique Hazaël-Massieux, for their support. Contributions to this specification were provided by Robin Raymond.
The RTCIceTransport
object