mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-26 00:57:30 +09:00
Issue #2332 - Update RTCIceCandidate to spec
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1263312 - part 1
This commit is contained in:
parent
f2dbc4c6ce
commit
ddf29677d9
2 changed files with 6 additions and 10 deletions
|
|
@ -227,9 +227,7 @@ GlobalPCList.prototype = {
|
||||||
};
|
};
|
||||||
var _globalPCList = new GlobalPCList();
|
var _globalPCList = new GlobalPCList();
|
||||||
|
|
||||||
function RTCIceCandidate() {
|
function RTCIceCandidate() {}
|
||||||
this.candidate = this.sdpMid = this.sdpMLineIndex = null;
|
|
||||||
}
|
|
||||||
RTCIceCandidate.prototype = {
|
RTCIceCandidate.prototype = {
|
||||||
classDescription: "RTCIceCandidate",
|
classDescription: "RTCIceCandidate",
|
||||||
classID: PC_ICE_CID,
|
classID: PC_ICE_CID,
|
||||||
|
|
@ -240,9 +238,7 @@ RTCIceCandidate.prototype = {
|
||||||
init: function(win) { this._win = win; },
|
init: function(win) { this._win = win; },
|
||||||
|
|
||||||
__init: function(dict) {
|
__init: function(dict) {
|
||||||
this.candidate = dict.candidate;
|
Object.assign(this, dict);
|
||||||
this.sdpMid = dict.sdpMid;
|
|
||||||
this.sdpMLineIndex = ("sdpMLineIndex" in dict)? dict.sdpMLineIndex : null;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,16 +8,16 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
dictionary RTCIceCandidateInit {
|
dictionary RTCIceCandidateInit {
|
||||||
DOMString? candidate = null;
|
required DOMString candidate;
|
||||||
DOMString? sdpMid = null;
|
DOMString? sdpMid = null;
|
||||||
unsigned short sdpMLineIndex;
|
unsigned short? sdpMLineIndex = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
[Pref="media.peerconnection.enabled",
|
[Pref="media.peerconnection.enabled",
|
||||||
JSImplementation="@mozilla.org/dom/rtcicecandidate;1",
|
JSImplementation="@mozilla.org/dom/rtcicecandidate;1",
|
||||||
Constructor(optional RTCIceCandidateInit candidateInitDict)]
|
Constructor(RTCIceCandidateInit candidateInitDict)]
|
||||||
interface RTCIceCandidate {
|
interface RTCIceCandidate {
|
||||||
attribute DOMString? candidate;
|
attribute DOMString candidate;
|
||||||
attribute DOMString? sdpMid;
|
attribute DOMString? sdpMid;
|
||||||
attribute unsigned short? sdpMLineIndex;
|
attribute unsigned short? sdpMLineIndex;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue