pub fn parse(sdp: &[u8]) -> Option<IceCandidate>Expand description
Parse an SDP bytestring, return an
IceCandidate struct.
§Example
The output for the following ICE candidate:
candidate:373990095 1 udp 41885439 5.148.189.205 63293 typ relay…is the following struct:
ⓘ
IceCandidate {
foundation: "373990095",
component_id: 1,
transport: Udp,
priority: 41885439,
connection_address: V4(5.148.189.205),
port: 63293,
candidate_type: Relay,
rel_addr: None,
rel_port: None,
extensions: None
}If parsing fails, None is returned.