mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-21 00:45:18 +00:00
Relay messages from RTC proxy to user
This commit is contained in:
@ -24,6 +24,7 @@ pub enum CallSignal {
|
||||
Candidate(IceCandidate, webrtc_sdp::attribute_type::SdpAttribute),
|
||||
}
|
||||
|
||||
/// New call signal from client
|
||||
pub struct NewUserCallSignal {
|
||||
pub call_hash: String,
|
||||
|
||||
@ -34,6 +35,13 @@ pub struct NewUserCallSignal {
|
||||
pub raw_data: String,
|
||||
}
|
||||
|
||||
/// New call signal from RTC relay
|
||||
pub struct NewRtcRelayMessage {
|
||||
pub call_hash: String,
|
||||
pub peer_id: String,
|
||||
pub data: String,
|
||||
}
|
||||
|
||||
impl SdpType {
|
||||
pub fn from_str(val: &str) -> Res<SdpType> {
|
||||
match val {
|
||||
|
Reference in New Issue
Block a user