1
0
Fork 0
forked from External/mediamtx
mediamtx/internal/rpicamera/rpicamera_disabled.go
2022-09-17 21:19:45 +02:00

24 lines
471 B
Go

//go:build !rpicamera
// +build !rpicamera
// Package rpicamera allows to interact with a Raspberry Pi Camera.
package rpicamera
import (
"fmt"
)
// RPICamera is a RPI Camera reader.
type RPICamera struct{}
// New allocates a RPICamera.
func New(
params Params,
onData func([][]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() {
}