feat: heatseeking

This commit is contained in:
2026-05-24 13:20:43 -04:00
parent e1aab0a8fb
commit b598adb498
12 changed files with 288 additions and 40 deletions

View File

@@ -1,20 +1,20 @@
use typed_builder::TypedBuilder;
#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
pub enum Microphone {
Unmuted,
ServerMuted,
Muted,
}
#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
pub enum Headphone {
Undeafened,
ServerDeafened,
Deafened,
}
#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
pub enum Camera {
Showing,
Off,
@@ -30,7 +30,7 @@ impl From<bool> for Camera {
}
}
#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
pub enum Stream {
Sharing,
None,
@@ -46,7 +46,7 @@ impl From<bool> for Stream {
}
}
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct UserInVCData {
pub microphone: Microphone,
pub headphone: Headphone,
@@ -54,7 +54,7 @@ pub struct UserInVCData {
pub stream: Stream,
}
#[derive(Debug, TypedBuilder)]
#[derive(Debug, Clone, TypedBuilder)]
pub struct VoiceStatus {
server_deafened: bool,
self_deafened: bool,