Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 44 additions & 39 deletions api-outline.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,45 +170,6 @@ enum RtcTransportFormat {
"DTLS/V0",
};

dictionary IceServer {
required DOMString url;
required DOMString username;
required DOMString credentials;
};

enum IceCandidateType {
"host",
"srflx",
"prflx",
"relay",
};

[Exposed=Window,Worker]
interface LocalIceCandidate {
readonly attribute DOMString ufrag;
readonly attribute DOMString pwd;
readonly attribute DOMString address;
readonly attribute unsigned short port;
readonly attribute IceCandidateType type;
readonly attribute unsigned short networkCost;
};

dictionary RemoteIceCandidate {
required DOMString ufrag;
required DOMString pwd;
required DOMString address;
required unsigned short port;
required IceCandidateType type;
unsigned short networkCost;
};

[Exposed=Window,Worker]
interface IceCandidatePair {
readonly attribute LocalIceCandidate localCandidate;
// TODO: Invalid IDL, a dictionary can not be an attribute.
readonly attribute RemoteIceCandidate remoteCandidate;
};

enum RtcNetworkRouteControllerType {
"automaticIceController",
"manualIceController",
Expand Down Expand Up @@ -250,6 +211,50 @@ dictionary RtcPacketReceived {
RtcNetworkRoute networkRoute;
};

```

Various ICE related helper types

```javascript
dictionary IceServer {
required DOMString url;
required DOMString username;
required DOMString credentials;
};

enum IceCandidateType {
"host",
"srflx",
"prflx",
"relay",
};

[Exposed=Window,Worker]
interface LocalIceCandidate {
readonly attribute DOMString ufrag;
readonly attribute DOMString pwd;
readonly attribute DOMString address;
readonly attribute unsigned short port;
readonly attribute IceCandidateType type;
readonly attribute unsigned short networkCost;
};

dictionary RemoteIceCandidate {
required DOMString ufrag;
required DOMString pwd;
required DOMString address;
required unsigned short port;
required IceCandidateType type;
unsigned short networkCost;
};

[Exposed=Window,Worker]
interface IceCandidatePair {
readonly attribute LocalIceCandidate localCandidate;
// TODO: Invalid IDL, a dictionary can not be an attribute.
readonly attribute RemoteIceCandidate remoteCandidate;
};

[Exposed=Window,Worker]
interface IceCandidateGatheredEvent : Event {
// Either a string ("host"), or an IceServer (the one passed to
Expand Down
Loading