mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
d6590573ed
22 changed files with 198 additions and 235 deletions
|
|
@ -8,16 +8,16 @@
|
|||
*/
|
||||
|
||||
dictionary RTCIceCandidateInit {
|
||||
DOMString? candidate = null;
|
||||
required DOMString candidate;
|
||||
DOMString? sdpMid = null;
|
||||
unsigned short sdpMLineIndex;
|
||||
unsigned short? sdpMLineIndex = null;
|
||||
};
|
||||
|
||||
[Pref="media.peerconnection.enabled",
|
||||
JSImplementation="@mozilla.org/dom/rtcicecandidate;1",
|
||||
Constructor(optional RTCIceCandidateInit candidateInitDict)]
|
||||
Constructor(RTCIceCandidateInit candidateInitDict)]
|
||||
interface RTCIceCandidate {
|
||||
attribute DOMString? candidate;
|
||||
attribute DOMString candidate;
|
||||
attribute DOMString? sdpMid;
|
||||
attribute unsigned short? sdpMLineIndex;
|
||||
|
||||
|
|
|
|||
|
|
@ -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,14 +84,14 @@ 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;
|
||||
Promise<void> addIceCandidate (RTCIceCandidate candidate);
|
||||
Promise<void> addIceCandidate ((RTCIceCandidateInit or RTCIceCandidate)? candidate);
|
||||
readonly attribute boolean? canTrickleIceCandidates;
|
||||
readonly attribute RTCIceGatheringState iceGatheringState;
|
||||
readonly attribute RTCIceConnectionState iceConnectionState;
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -15,16 +15,17 @@ enum RTCSdpType {
|
|||
};
|
||||
|
||||
dictionary RTCSessionDescriptionInit {
|
||||
RTCSdpType? type = null;
|
||||
DOMString? sdp = "";
|
||||
required RTCSdpType type;
|
||||
DOMString sdp = "";
|
||||
};
|
||||
|
||||
[Pref="media.peerconnection.enabled",
|
||||
JSImplementation="@mozilla.org/dom/rtcsessiondescription;1",
|
||||
Constructor(optional RTCSessionDescriptionInit descriptionInitDict)]
|
||||
interface RTCSessionDescription {
|
||||
attribute RTCSdpType? type;
|
||||
attribute DOMString? sdp;
|
||||
// These should be readonly, but writing causes deprecation warnings for a bit
|
||||
attribute RTCSdpType type;
|
||||
attribute DOMString sdp;
|
||||
|
||||
jsonifier;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue