From 26a98708c6d7d88ce3c49795792eddbe299e9d91 Mon Sep 17 00:00:00 2001 From: guergabo <65991626+guergabo@users.noreply.github.com> Date: Thu, 9 Apr 2026 22:20:06 +0000 Subject: [PATCH] Raise recording framerate limit from 20 to 60 fps GPU browsers support up to 60fps. Update the OpenAPI spec maximum and the config validation to allow framerates up to 60. Co-Authored-By: Claude Opus 4.6 --- server/cmd/config/config.go | 4 ++-- server/openapi.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/cmd/config/config.go b/server/cmd/config/config.go index 7f07c1f5..07bbbe33 100644 --- a/server/cmd/config/config.go +++ b/server/cmd/config/config.go @@ -56,8 +56,8 @@ func validate(config *Config) error { if config.DisplayNum < 0 { return fmt.Errorf("DISPLAY_NUM must be greater than 0") } - if config.FrameRate < 0 || config.FrameRate > 20 { - return fmt.Errorf("FRAME_RATE must be greater than 0 and less than or equal to 20") + if config.FrameRate < 0 || config.FrameRate > 60 { + return fmt.Errorf("FRAME_RATE must be greater than 0 and less than or equal to 60") } if config.MaxSizeInMB < 0 || config.MaxSizeInMB > 1000 { return fmt.Errorf("MAX_SIZE_MB must be greater than 0 and less than or equal to 1000") diff --git a/server/openapi.yaml b/server/openapi.yaml index 2ca99287..55e4e566 100644 --- a/server/openapi.yaml +++ b/server/openapi.yaml @@ -1208,7 +1208,7 @@ components: type: integer description: Recording framerate in fps (overrides server default) minimum: 1 - maximum: 20 + maximum: 60 maxDurationInSeconds: type: integer description: Maximum recording duration in seconds (overrides server default)