Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExampleReadFrameAsJpeg ¶ added in v1.2.2
func IsAvailable ¶
func VideoCoverBase64 ¶ added in v1.2.2
func VideoDuration ¶ added in v1.2.2
Types ¶
type Config ¶
type Config struct { Framerate int // 1-3 is safe Height int Width int CoefficientPTSFloat float64 // 0.333*PTS MouseCapture bool MouseClickCapture bool // contains filtered or unexported fields }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type ConfigOpt ¶
type ConfigOpt func(config *Config)
func WithCoefficientPTS ¶
func WithContext ¶
func WithContext(ctx context.Context, cancel context.CancelFunc) ConfigOpt
func WithFramerate ¶
func WithMouseCapture ¶
func WithResolutionSize ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
func NewRecorder ¶
func (*Recorder) OnFileAppended ¶
func (*Recorder) OutputFiles ¶
type ScreenDevice ¶
type ScreenDevice struct { DeviceName string // in darwin: "1" "2" "3" is ok // linux: ":0.1" ":0.2" ":0.3" FfmpegInputName string }
func GetDarwinAvailableAVFoundationScreenDevices ¶
func GetDarwinAvailableAVFoundationScreenDevices() []*ScreenDevice
Click to show internal directories.
Click to hide internal directories.