providers

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderGstreamer     = "gstreamer"
	ProviderScreenCapture = "screencap"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Display

type Display interface {
	Start(width, height int) error
	PullFrame() *image.RGBA
	Close() error
}

A Display is an interface that can be implemented by different types of frame sources.

func GetDisplayProvider

func GetDisplayProvider(p Provider) Display

GetDisplayProvider returns the provider to use for the given RFB connection.

type Gstreamer

type Gstreamer struct {
	// contains filtered or unexported fields
}

Gstreamer implements a display provider using gstreamer to capture video.

func (*Gstreamer) Close

func (g *Gstreamer) Close() error

Close stops the gstreamer pipeline and releases resources.

func (*Gstreamer) PullFrame

func (g *Gstreamer) PullFrame() *image.RGBA

PullFrame returns a frame or nil if closed.

func (*Gstreamer) Start

func (g *Gstreamer) Start(width, height int) error

Start will start the gstreamer pipeline and send images to the frame queue.

type Provider

type Provider string

Provider is an enum used for selecting a display provider.

type ScreenCapture

type ScreenCapture struct {
	// contains filtered or unexported fields
}

ScreenCapture implements a display provider that periodically captures the screen.

func (*ScreenCapture) Close

func (s *ScreenCapture) Close() error

func (*ScreenCapture) PullFrame

func (s *ScreenCapture) PullFrame() *image.RGBA

func (*ScreenCapture) Start

func (s *ScreenCapture) Start(width, height int) error

Jump to

Keyboard shortcuts

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