mediamtx/internal/rpicamera/rpicamera_disabled.go

34 lines
663 B
Go
Raw Normal View History

//go:build !rpicamera
// +build !rpicamera
2022-09-17 19:19:45 +00:00
// Package rpicamera allows to interact with a Raspberry Pi Camera.
package rpicamera
import (
"fmt"
2022-10-25 10:14:37 +00:00
"time"
)
// Cleanup cleanups files created by the camera implementation.
func Cleanup() {
}
// RPICamera is a RPI Camera reader.
type RPICamera struct{}
// New allocates a RPICamera.
func New(
2023-05-28 15:18:16 +00:00
_ Params,
_ func(time.Duration, [][]byte),
) (*RPICamera, error) {
return nil, fmt.Errorf("server was compiled without support for the Raspberry Pi Camera")
}
// Close closes a RPICamera.
func (c *RPICamera) Close() {
}
// ReloadParams reloads the camera parameters.
2023-05-28 15:18:16 +00:00
func (c *RPICamera) ReloadParams(_ Params) {
}