mediamtx/internal/rpicamera/rpicamera_disabled.go

26 lines
494 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"
)
// RPICamera is a RPI Camera reader.
type RPICamera struct{}
// New allocates a RPICamera.
func New(
params Params,
2022-10-25 10:14:37 +00:00
onData 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() {
}