Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ScreenGrabber ¶
type ScreenGrabber interface { Start() Frames() <-chan *image.RGBA Stop() Fps() int Screen() *Screen }
ScreenGrabber TODO
type Service ¶
type Service interface { CreateScreenGrabber(screen Screen, fps int) (ScreenGrabber, error) Screens() ([]Screen, error) }
Service TODO
func NewVideoProvider ¶
NewVideoProvider returns an X Server-based video provider
type XScreenGrabber ¶
type XScreenGrabber struct {
// contains filtered or unexported fields
}
XScreenGrabber captures video from a X server
func (*XScreenGrabber) Fps ¶
func (g *XScreenGrabber) Fps() int
Fps returns the frames per sec. we're capturing
func (*XScreenGrabber) Frames ¶
func (g *XScreenGrabber) Frames() <-chan *image.RGBA
Frames returns a channel that will receive an image stream
func (*XScreenGrabber) Screen ¶
func (g *XScreenGrabber) Screen() *Screen
Screen returns a pointer to the screen we're capturing
func (*XScreenGrabber) Start ¶
func (g *XScreenGrabber) Start()
Start initiates the screen capture loop
func (*XScreenGrabber) Stop ¶
func (g *XScreenGrabber) Stop()
Stop sends a stop signal to the capture loop
type XVideoProvider ¶
type XVideoProvider struct{}
XVideoProvider implements the rdisplay.Service interface for XServer
func (*XVideoProvider) CreateScreenGrabber ¶
func (*XVideoProvider) CreateScreenGrabber(screen Screen, fps int) (ScreenGrabber, error)
CreateScreenGrabber Creates an screen capturer for the X server
func (*XVideoProvider) Screens ¶
func (x *XVideoProvider) Screens() ([]Screen, error)
Screens Returns the available screens to capture
Click to show internal directories.
Click to hide internal directories.