mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
jingle_ice_udp: Add methods to add a RTP candidate and set the DTLS-SRTP fingerprint.
This commit is contained in:
parent
03e8ef7569
commit
8a13d7f010
1 changed files with 12 additions and 0 deletions
|
@ -36,6 +36,18 @@ impl Transport {
|
|||
fingerprint: None,
|
||||
}
|
||||
}
|
||||
|
||||
/// Add a candidate to this transport.
|
||||
pub fn add_candidate(mut self, candidate: Candidate) -> Self {
|
||||
self.candidates.push(candidate);
|
||||
self
|
||||
}
|
||||
|
||||
/// Set the DTLS-SRTP fingerprint of this transport.
|
||||
pub fn with_fingerprint(mut self, fingerprint: Fingerprint) -> Self {
|
||||
self.fingerprint = Some(fingerprint);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
generate_attribute!(
|
||||
|
|
Loading…
Reference in a new issue