1
0
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:
2021-02-11 19:07:30 +01:00
parent 4c8d4345a2
commit 50b094acfb
6 changed files with 132 additions and 6 deletions

View File

@ -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 {