Documentation ¶
Index ¶
- Constants
- Variables
- type DigitVideoRecorderDriver
- type DigitVideoRecorderDriverFactory
- type DigitVideoRecorderDriverOption
- type DigitVideoRecorderState
- type FFmpegDigitVideoRecorderDriver
- func (drv *FFmpegDigitVideoRecorderDriver) GetRecord(id string) (*Record, error)
- func (drv *FFmpegDigitVideoRecorderDriver) ListRecords(flt ListRecordsFitler) ([]*Record, error)
- func (drv *FFmpegDigitVideoRecorderDriver) Reset() error
- func (drv *FFmpegDigitVideoRecorderDriver) Start() error
- func (drv *FFmpegDigitVideoRecorderDriver) State() *DigitVideoRecorderState
- func (drv *FFmpegDigitVideoRecorderDriver) Stop() error
- type ListRecordsFitler
- type Record
- type RecordStorage
- type RecordStorageOption
Constants ¶
View Source
const (
FFMPEG_DEFAULT_BINARY = `ffmpeg`
)
Variables ¶
View Source
var ( DIGITI_VIDEO_RECORDER_STATE_ON = &DigitVideoRecorderState{state: "on"} DIGITI_VIDEO_RECORDER_STATE_OFF = &DigitVideoRecorderState{state: "off"} )
Functions ¶
This section is empty.
Types ¶
type DigitVideoRecorderDriver ¶
type DigitVideoRecorderDriver interface { Start() error Stop() error State() *DigitVideoRecorderState GetRecord(id string) (*Record, error) ListRecords(ListRecordsFitler) ([]*Record, error) }
func NewDigitVideoRecorderDriver ¶
func NewDigitVideoRecorderDriver(name string, opt *DigitVideoRecorderDriverOption, args ...interface{}) (DigitVideoRecorderDriver, error)
func NewFFmpegDigitVideoRecorderDriver ¶
func NewFFmpegDigitVideoRecorderDriver(opt *DigitVideoRecorderDriverOption, args ...interface{}) (DigitVideoRecorderDriver, error)
type DigitVideoRecorderDriverFactory ¶
type DigitVideoRecorderDriverFactory func(opt *DigitVideoRecorderDriverOption, args ...interface{}) (DigitVideoRecorderDriver, error)
type DigitVideoRecorderDriverOption ¶
func (*DigitVideoRecorderDriverOption) Sub ¶
func (o *DigitVideoRecorderDriverOption) Sub(key string) *DigitVideoRecorderDriverOption
type DigitVideoRecorderState ¶
type DigitVideoRecorderState struct {
// contains filtered or unexported fields
}
func (*DigitVideoRecorderState) String ¶
func (s *DigitVideoRecorderState) String() string
type FFmpegDigitVideoRecorderDriver ¶
type FFmpegDigitVideoRecorderDriver struct {
// contains filtered or unexported fields
}
func (*FFmpegDigitVideoRecorderDriver) GetRecord ¶
func (drv *FFmpegDigitVideoRecorderDriver) GetRecord(id string) (*Record, error)
func (*FFmpegDigitVideoRecorderDriver) ListRecords ¶
func (drv *FFmpegDigitVideoRecorderDriver) ListRecords(flt ListRecordsFitler) ([]*Record, error)
func (*FFmpegDigitVideoRecorderDriver) Reset ¶
func (drv *FFmpegDigitVideoRecorderDriver) Reset() error
func (*FFmpegDigitVideoRecorderDriver) Start ¶
func (drv *FFmpegDigitVideoRecorderDriver) Start() error
func (*FFmpegDigitVideoRecorderDriver) State ¶
func (drv *FFmpegDigitVideoRecorderDriver) State() *DigitVideoRecorderState
func (*FFmpegDigitVideoRecorderDriver) Stop ¶
func (drv *FFmpegDigitVideoRecorderDriver) Stop() error
type ListRecordsFitler ¶
type Record ¶
type RecordStorage ¶
type RecordStorage interface { ListRecords(ListRecordsFitler) ([]*Record, error) GetRecord(id string) (*Record, error) SetRecord(*Record) error UnsetRecord(id string) error }
func NewRecordStorage ¶
func NewRecordStorage(name string, opt *RecordStorageOption, args ...interface{}) (RecordStorage, error)
type RecordStorageOption ¶
Click to show internal directories.
Click to hide internal directories.