revid: added AVDevice interface

This commit is contained in:
Saxon 2019-10-29 19:02:55 +10:30
parent 6dccc5c4d5
commit 20bf962fa3
1 changed files with 7 additions and 0 deletions

View File

@ -53,6 +53,13 @@ const (
ipCamPass = "admin"
)
type AVDevice interface {
io.Reader
Start() error
Stop() error
Set() error
}
// startRaspivid sets up things for input from raspivid i.e. starts
// a raspivid process and pipes it's data output.
func (r *Revid) startRaspivid() (func() error, error) {