Skip to content

Commit

Permalink
add PeerConnectionEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
yngrtc committed Mar 18, 2024
1 parent c6ddbb8 commit 011374f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions rtc/src/peer_connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,21 @@ pub fn math_rand_alpha(n: usize) -> String {

rand_string
}

pub enum PeerConnectionEvent {
// Peer-to-peer connections
OnNegotiationNeeded,
OnIceCandidate,
OnIceCandidateError,
OnSignalingStateChange,
OnIceConnectionStateChange,
OnIceGatheringStateChane,
OnConnectionStateChange,
// RTP Media API
OnTrack,
// Peer-to-peer Data API
OnDataChannel,
}
/*
pub type OnSignalingStateChangeHdlrFn = Box<
dyn (FnMut(RTCSignalingState) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>>)
Expand Down

0 comments on commit 011374f

Please sign in to comment.