wip: connection

This commit is contained in:
Kingtous committed 2023-02-07 16:20:36 +08:00
1 parent 28ad271693
commit 1f40963b5d
4 files changed
+60 -18

No files matched your search

+8
View File
@@ -1533,6 +1533,10 @@ impl Connection {
}
_ => {}
},
Some(misc::Union::AudioFormat(format)) => {
// TODO: implement audio format handler
println!("recv audio format");
}
#[cfg(feature = "flutter")]
Some(misc::Union::SwitchSidesRequest(s)) => {
if let Ok(uuid) = uuid::Uuid::from_slice(&s.uuid.to_vec()[..]) {
@@ -1550,6 +1554,10 @@ impl Connection {
}
_ => {}
},
Some(message::Union::AudioFrame(audio_frame)) => {
// TODO: implement audio frame handler
println!("recv audio frame");
}
_ => {}
}
}