mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add createOfer
This commit is contained in:
parent
9521c3d5a4
commit
c156289a0c
2 changed files with 95 additions and 9 deletions
|
@ -7,7 +7,7 @@
|
|||
[Constructor(optional RTCConfiguration configuration),
|
||||
Exposed=Window, Pref="dom.webrtc.enabled"]
|
||||
interface RTCPeerConnection : EventTarget {
|
||||
// Promise<RTCSessionDescriptionInit> createOffer(optional RTCOfferOptions options);
|
||||
Promise<RTCSessionDescriptionInit> createOffer(optional RTCOfferOptions options);
|
||||
// Promise<RTCSessionDescriptionInit> createAnswer(optional RTCAnswerOptions options);
|
||||
// Promise<void> setLocalDescription(RTCSessionDescriptionInit description);
|
||||
// readonly attribute RTCSessionDescription? localDescription;
|
||||
|
@ -75,3 +75,14 @@ enum RTCIceCredentialType {
|
|||
"password",
|
||||
"oauth"
|
||||
};
|
||||
|
||||
dictionary RTCOfferAnswerOptions {
|
||||
boolean voiceActivityDetection = true;
|
||||
};
|
||||
|
||||
dictionary RTCOfferOptions : RTCOfferAnswerOptions {
|
||||
boolean iceRestart = false;
|
||||
};
|
||||
|
||||
dictionary RTCAnswerOptions : RTCOfferAnswerOptions {
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue