Canon LiveView : activer viewfinder gphoto2 avant capture_preview

This commit is contained in:
2026-04-09 01:44:46 +02:00
parent a59f0ef766
commit 076e6d0030
2 changed files with 28 additions and 0 deletions

View File

@@ -686,9 +686,11 @@ async def traiter_message_ws(msg: dict, ws: WebSocket):
await ws.send_json({"type": "pong"})
elif type_msg == "preview_start":
global _preview_actif
camera.activer_viewfinder()
_preview_actif = True
elif type_msg == "preview_stop":
_preview_actif = False
camera.desactiver_viewfinder()
async def diffuser_ws(message: dict):