mirror of https://bitbucket.org/ausocean/av.git
revid: added AVDevice interface
This commit is contained in:
parent
6dccc5c4d5
commit
20bf962fa3
|
@ -53,6 +53,13 @@ const (
|
||||||
ipCamPass = "admin"
|
ipCamPass = "admin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type AVDevice interface {
|
||||||
|
io.Reader
|
||||||
|
Start() error
|
||||||
|
Stop() error
|
||||||
|
Set() error
|
||||||
|
}
|
||||||
|
|
||||||
// startRaspivid sets up things for input from raspivid i.e. starts
|
// startRaspivid sets up things for input from raspivid i.e. starts
|
||||||
// a raspivid process and pipes it's data output.
|
// a raspivid process and pipes it's data output.
|
||||||
func (r *Revid) startRaspivid() (func() error, error) {
|
func (r *Revid) startRaspivid() (func() error, error) {
|
||||||
|
|
Loading…
Reference in New Issue