wip: connection

This commit is contained in:
Kingtous
2022-11-04 12:02:17 +08:00
parent 28ad271693
commit 1f40963b5d
4 changed files with 60 additions and 18 deletions

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");
}
_ => {}
}
}