This commit is contained in:
KingKDot
2026-03-08 22:31:11 -05:00
parent 6c05960400
commit 78a79ea3e1
27 changed files with 1352 additions and 12 deletions
@@ -0,0 +1,23 @@
//go:build !windows
package capture
type WebcamDeviceInfo struct {
Index int
Name string
MaxFPS int
}
func ListWebcams() ([]WebcamDeviceInfo, error) {
return []WebcamDeviceInfo{}, nil
}
func ClampWebcamFPS(_ int, requestedFPS int, _ bool) (int, error) {
if requestedFPS < 1 {
requestedFPS = 30
}
if requestedFPS > 120 {
requestedFPS = 120
}
return requestedFPS, nil
}