neko/internal/types/capture.go
Miroslav Šedivý fdd98377b3 lazy screencast.
2021-01-23 15:17:52 +01:00

38 lines
570 B
Go

package types
type Sample struct {
Data []byte
Samples uint32
}
type BroadcastManager interface {
Start(url string) error
Stop()
Enabled() bool
Url() string
}
type ScreencastManager interface {
Enabled() bool
Started() bool
Image() ([]byte, error)
}
type CaptureManager interface {
Start()
Shutdown() error
Broadcast() BroadcastManager
Screencast() ScreencastManager
VideoCodec() string
AudioCodec() string
OnVideoFrame(listener func(sample Sample))
OnAudioFrame(listener func(sample Sample))
StartStream()
StopStream()
Streaming() bool
}