Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.it.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ principali su Linux e Windows.
## Funzioni

- **Visione dal vivo** del posto esterno (video H264) con **audio
bidirezionale**: ascolti dalle casse, tieni premuto un pulsante per parlare.
bidirezionale**: ascolti dalle casse, con un clic apri il microfono.
- **Apertura di porta e cancello** (tutte le serrature del kit), con conferma.
- **Luce scale** accesa/spenta, comprese le luci che l'app nasconde.
- **Notifica sul desktop** quando suonano, con la foto del visitatore.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Windows.
## Features

- **Live view** of the entrance panel (H264 video) with **two-way audio**:
listen through the speakers, hold a button to talk.
listen through the speakers, click to open the microphone.
- **Open the door and the gate** (every lock of the kit), with a confirmation.
- **Staircase light** on/off, including lights the phone app hides.
- **Ring notifications** on the desktop with the visitor's snapshot.
Expand Down
Binary file modified docs/screenshots/live-en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/live-it.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 14 additions & 5 deletions src/bin/gui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,12 +542,21 @@ impl App {
if ui.toggle_value(&mut self.muted, format!("🔇 {}", t(lang, "live.mute"))).changed() {
self.send_quiet(Command::Mute(self.muted));
}
let talk = ui.add(egui::Button::new(format!("🎤 {}", t(lang, "live.talk"))).selected(self.talking));
let down = talk.is_pointer_button_down_on();
if down != self.talking {
self.talking = down;
self.send_quiet(Command::Talk(down));
// One click opens the microphone, another closes it.
let label = if self.talking { t(lang, "live.mic_on") } else { t(lang, "live.talk") };
let mut text = RichText::new(format!("🎤 {label}"));
if self.talking {
text = text.color(Color32::from_rgb(220, 80, 80)).strong();
}
let mic = egui::Button::new(text).selected(self.talking);
if ui.add(mic).clicked() {
self.talking = !self.talking;
self.send_quiet(Command::Talk(self.talking));
}
} else {
// Every call starts with the microphone closed and audio on.
self.talking = false;
self.muted = false;
}
});
if let Some((w, h, rgba, n)) = frame {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ const TABLE: &[(&str, &str, &str)] = &[
("live.connecting", "Connecting…", "Connessione…"),
("live.ended", "Ended: {}", "Terminata: {}"),
("live.mute", "Mute", "Muto"),
("live.talk", "Hold to talk", "Tieni premuto per parlare"),
("live.talk", "Talk", "Parla"),
("live.mic_on", "Microphone on, click to close", "Microfono aperto, clicca per chiudere"),
("live.busy", "The intercom is busy (ringing or in a call).", "Il citofono è occupato (sta squillando o è in chiamata)."),
("events.empty", "No calls yet.", "Nessuna chiamata."),
("events.accepted", "Answered", "Risposta"),
Expand Down
Loading