mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Add RTCIceCandidate::ToJSON
This commit is contained in:
parent
b7e2e79e53
commit
0d9f538561
2 changed files with 11 additions and 1 deletions
|
@ -98,4 +98,14 @@ impl RTCIceCandidateMethods for RTCIceCandidate {
|
|||
fn GetUsernameFragment(&self) -> Option<DOMString> {
|
||||
self.username_fragment.clone()
|
||||
}
|
||||
|
||||
/// https://w3c.github.io/webrtc-pc/#dom-rtcicecandidate-tojson
|
||||
fn ToJSON(&self) -> RTCIceCandidateInit {
|
||||
RTCIceCandidateInit {
|
||||
candidate: self.candidate.clone(),
|
||||
sdpMid: self.sdp_m_id.clone(),
|
||||
sdpMLineIndex: self.sdp_m_line_index.clone(),
|
||||
usernameFragment: self.username_fragment.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue