mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
fix(video): prevent image freeze on disconnect and auto-recover video stream on reconnect
This commit is contained in:
1 parent
cf2e603594
commit
0e44febf27
3 files changed
+166
-22
No files matched your search
+15
-3
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user