mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-12 01:35:02 +00:00
24 lines
403 B
Go
24 lines
403 B
Go
|
//go:build !rpicamera
|
||
|
// +build !rpicamera
|
||
|
|
||
|
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() {
|
||
|
}
|