Documentation
¶
Overview ¶
Package vnc-screencapture provides API for capturing remote screen over VNC connection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecordGIF ¶
RecordGIF initializes VNC connection, request screen updates until either context canceled, doneCh received, or VNC connection is closed using defaultOptions.
func RecordGIFWithOptions ¶ added in v0.1.4
Types ¶
type CaptureOptions ¶ added in v0.1.4
type CaptureOptions struct {
FBUpdaterFactory fbupdater.FBUpdaterFactory
DoneCh chan any
}
type ScreenCapture ¶ added in v0.1.1
type ScreenCapture interface {
Record(done chan any) error
RenderGIF() (*gif.GIF, error)
Close() error
}
ScreenCapture is the interface for capturing VNC screen frames.
Record starts recording screen frames and could be stopped with done channel). Same connection may be reused for recording multiple times.
RenderGIF returns GIF image data and clears captured frames.
func Connect ¶ added in v0.1.1
Connect initializes VNC connection and starts message processing goroutine. Use default parameters.
func ConnectWithOptions ¶ added in v0.1.4
func ConnectWithOptions(ctx context.Context, conn net.Conn, options CaptureOptions) (ScreenCapture, error)
Connect initializes VNC connection and starts message processing goroutine.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
vnc-screencapture
command
vnc-screencapture captures VNC screen and writes captured frames to GIF file.
|
vnc-screencapture captures VNC screen and writes captured frames to GIF file. |