From 59b0b88c53032514bf5ba68efe17b6f089734bfe Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sat, 24 Aug 2024 20:50:12 +0000 Subject: [PATCH] added non-init ice candidate --- src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b6fded3..9c60ad0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,14 +15,15 @@ use tokio_tungstenite::{connect_async, tungstenite::Message, MaybeTlsStream, Web use tokio_tungstenite::tungstenite::error::Error as tungstenite_error; use tracing::{error, info, debug, instrument}; use webrtc::peer_connection::sdp::session_description::RTCSessionDescription; -use webrtc::ice_transport::ice_candidate::RTCIceCandidateInit; +use webrtc::ice_transport::ice_candidate::{RTCIceCandidate, RTCIceCandidateInit}; static MAX_MESSAGE: usize = 50; #[derive(Serialize, Deserialize, Clone)] pub enum ApplicationMessage { WebRTCPacket(RTCSessionDescription), - WebRTCIceCandidate(RTCIceCandidateInit), + WebRTCIceCandidate(RTCIceCandidate), + WebRTCIceCandidateInit(RTCIceCandidateInit), } pub type AppSender = Sender;