mediamtx/internal/staticsources/rpicamera/camera_disabled.go
Alessandro Ros c5059fa7a0
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
move RPI Camera component into dedicated repository (#3656)
2024-08-14 23:24:17 +02:00

24 lines
392 B
Go

//go:build !linux || (!arm && !arm64)
// +build !linux !arm,!arm64
package rpicamera
import (
"fmt"
"time"
)
type camera struct {
Params params
OnData func(time.Duration, [][]byte)
}
func (c *camera) initialize() error {
return fmt.Errorf("server was compiled without support for the Raspberry Pi Camera")
}
func (c *camera) close() {
}
func (c *camera) reloadParams(_ params) {
}