diff options
author | Basilisk-Dev <basiliskdev@protonmail.com> | 2023-10-09 17:06:12 -0400 |
---|---|---|
committer | Basilisk-Dev <basiliskdev@protonmail.com> | 2023-10-09 17:06:12 -0400 |
commit | c8218f73b7a1f2dcc8b2a83707dcfd9d38e741d4 (patch) | |
tree | f8b26721750032867ca7cd99acc2aa06020a695f /dom | |
parent | 81cf4413e21bcda21aa6664d53c2ab74dd749b37 (diff) | |
download | uxp-c8218f73b7a1f2dcc8b2a83707dcfd9d38e741d4.tar.gz |
Issue #2332 - Have set(Local|Remote)Description take dictionaries
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1263312 part 3
Diffstat (limited to 'dom')
-rw-r--r-- | dom/webidl/RTCPeerConnection.webidl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/dom/webidl/RTCPeerConnection.webidl b/dom/webidl/RTCPeerConnection.webidl index 272d9c6c4e..7e9016e0aa 100644 --- a/dom/webidl/RTCPeerConnection.webidl +++ b/dom/webidl/RTCPeerConnection.webidl @@ -7,7 +7,7 @@ * http://w3c.github.io/webrtc-pc/#interface-definition */ -callback RTCSessionDescriptionCallback = void (RTCSessionDescription sdp); +callback RTCSessionDescriptionCallback = void (RTCSessionDescriptionInit description); callback RTCPeerConnectionErrorCallback = void (DOMError error); callback RTCStatsCallback = void (RTCStatsReport report); @@ -84,10 +84,10 @@ interface RTCPeerConnection : EventTarget { optional DOMString username); [Pref="media.peerconnection.identity.enabled"] Promise<DOMString> getIdentityAssertion(); - Promise<RTCSessionDescription> createOffer (optional RTCOfferOptions options); - Promise<RTCSessionDescription> createAnswer (optional RTCAnswerOptions options); - Promise<void> setLocalDescription (RTCSessionDescription description); - Promise<void> setRemoteDescription (RTCSessionDescription description); + Promise<RTCSessionDescriptionInit> createOffer (optional RTCOfferOptions options); + Promise<RTCSessionDescriptionInit> createAnswer (optional RTCAnswerOptions options); + Promise<void> setLocalDescription (RTCSessionDescriptionInit description); + Promise<void> setRemoteDescription (RTCSessionDescriptionInit description); readonly attribute RTCSessionDescription? localDescription; readonly attribute RTCSessionDescription? remoteDescription; readonly attribute RTCSignalingState signalingState; @@ -155,10 +155,10 @@ partial interface RTCPeerConnection { optional RTCOfferOptions options); Promise<void> createAnswer (RTCSessionDescriptionCallback successCallback, RTCPeerConnectionErrorCallback failureCallback); - Promise<void> setLocalDescription (RTCSessionDescription description, + Promise<void> setLocalDescription (RTCSessionDescriptionInit description, VoidFunction successCallback, RTCPeerConnectionErrorCallback failureCallback); - Promise<void> setRemoteDescription (RTCSessionDescription description, + Promise<void> setRemoteDescription (RTCSessionDescriptionInit description, VoidFunction successCallback, RTCPeerConnectionErrorCallback failureCallback); Promise<void> addIceCandidate (RTCIceCandidate candidate, |