fix(video): prevent image freeze on disconnect and auto-recover video stream on reconnect

This commit is contained in:
bleackstorm committed 2026-11-05 22:59:47 +01:00
1 parent cf2e603594
commit 0e44febf27
3 files changed
+166 -22

No files matched your search

+15 -3
View File
@@ -554,12 +554,24 @@ impl SteamFrameGpuiApp {
.py_1()
.bg(rgba(0x0a101abb))
.border_1()
.border_color(rgb(COLOR_GREEN))
.border_color(if self.video_fps > 0.1 {
rgb(COLOR_GREEN)
} else {
rgb(COLOR_ORANGE)
})
.rounded_md()
.text_xs()
.font_weight(gpui::FontWeight::BOLD)
.text_color(rgb(COLOR_GREEN))
.child(format!("{:.1} FPS", self.video_fps)),
.text_color(if self.video_fps > 0.1 {
rgb(COLOR_GREEN)
} else {
rgb(COLOR_ORANGE)
})
.child(if self.video_fps > 0.1 {
format!("{:.1} FPS", self.video_fps)
} else {
"⚠️ RECHERCHE SIGNAL".to_string()
}),
)
.child(
div()