neko/internal/types/capture.go

30 lines
477 B
Go
Raw Normal View History

2020-11-02 04:09:48 +13:00
package types
type Sample struct {
Data []byte
Samples uint32
}
type CaptureManager interface {
Start()
Shutdown() error
VideoCodec() string
AudioCodec() string
OnVideoFrame(listener func(sample Sample))
OnAudioFrame(listener func(sample Sample))
StartStream()
StopStream()
Streaming() bool
ChangeResolution(width int, height int, rate int) error
// broacast
StartBroadcast(url string)
StopBroadcast()
2020-11-02 05:34:47 +13:00
BroadcastEnabled() bool
2020-11-02 04:09:48 +13:00
BroadcastUrl() string
}