jingle_ice_udp: Add methods to add a RTP candidate and set the DTLS-SRTP fingerprint.

This commit is contained in:
Emmanuel Gil Peyrot 2019-10-18 13:06:36 +02:00
parent 03e8ef7569
commit 8a13d7f010

View file

@ -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!(