recorder

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoWriteRecorder

type NoWriteRecorder struct {
}

func (*NoWriteRecorder) CheckCanRecord

func (*NoWriteRecorder) CheckCanRecord() error

func (*NoWriteRecorder) StartRecording

func (*NoWriteRecorder) StartRecording() error

func (*NoWriteRecorder) StopRecording

func (*NoWriteRecorder) StopRecording() (string, error)

func (*NoWriteRecorder) WriteFrame

func (*NoWriteRecorder) WriteFrame(*cptvframe.Frame) error

type Recorder

type Recorder interface {
	StopRecording() (string, error)
	StartRecording() error
	WriteFrame(*cptvframe.Frame) error
	CheckCanRecord() error
}

type RecorderConfig

type RecorderConfig struct {
	Active      bool
	MinSecs     int
	MaxSecs     int
	PreviewSecs int
	Window      window.Window
	LogRate     int
}

func NewConfig

func NewConfig(conf *config.Config) (*RecorderConfig, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL