Lines Matching refs:peer_connection
14 use webrtc::peer_connection::configuration::RTCConfiguration;
16 use webrtc::peer_connection::sdp::session_description::RTCSessionDescription;
17 use webrtc::peer_connection::RTCPeerConnection;
26 use webrtc::peer_connection::peer_connection_state::RTCPeerConnectionState;
65 let peer_connection = Arc::new(api.new_peer_connection(config).await?); in handle_whep() localVariable
88 let rtp_sender = peer_connection in handle_whep()
92 let _ = peer_connection in handle_whep()
107 peer_connection.on_ice_connection_state_change(Box::new( in handle_whep()
120 peer_connection.on_peer_connection_state_change(Box::new(move |s: RTCPeerConnectionState| { in handle_whep()
138 peer_connection.set_remote_description(offer).await?; in handle_whep()
141 let answer = peer_connection.create_answer(None).await?; in handle_whep()
144 let mut gather_complete = peer_connection.gathering_complete_promise().await; in handle_whep()
147 peer_connection.set_local_description(answer).await?; in handle_whep()
186 if let Some(local_desc) = peer_connection.local_description().await { in handle_whep()
187 Ok((local_desc, peer_connection)) in handle_whep()