Documentation ¶
Index ¶
- Variables
- func GetStdInWriter(filename string) (io.WriteCloser, error)
- func GrantPermissions(urls []string, browser *rod.Browser) error
- func MustGetStream(page *PageInfo, streamConstraints StreamConstraints, ch chan string) error
- func MustPrepareLauncher(args LauncherArgs) *launcher.Launcher
- func MustStopStream(page *PageInfo) error
- func Parseb64(data string) []byte
- type LauncherArgs
- type PageInfo
- type StreamConstraints
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ExtensionId = "jjndjgheafjngoipoacpjgeicjeomjli"
)
Functions ¶
func GetStdInWriter ¶
func GetStdInWriter(filename string) (io.WriteCloser, error)
GetStdInWriter returns a writer that writes to stdin
func GrantPermissions ¶
GrantPermissions grants Video & Audio permissions to the urls
func MustGetStream ¶
func MustGetStream(page *PageInfo, streamConstraints StreamConstraints, ch chan string) error
MustGetStream Gets a stream from the browser's page
func MustPrepareLauncher ¶
func MustPrepareLauncher(args LauncherArgs) *launcher.Launcher
MustPrepareLauncher loads the extension and sets required parameters
Types ¶
type LauncherArgs ¶
type LauncherArgs struct {
UserMode bool
}
type PageInfo ¶
type PageInfo struct { CapturePage *rod.Page StopStream bool Chan chan string // recording channel }
func MustCreatePage ¶
MustCreatePage Must call the browser to capture the extension first handshake returns a page that can be used to capture video
type StreamConstraints ¶
type StreamConstraints struct { Audio bool `json:"audio"` Video bool `json:"video"` MimeType string `json:"mimeType,omitempty"` AudioBitsPerSecond int `json:"audioBitsPerSecond,omitempty"` VideoBitsPerSecond int `json:"videoBitsPerSecond,omitempty"` BitsPerSecond int `json:"bitsPerSecond,omitempty"` FrameSize int `json:"frameSize,omitempty"` MinWidth int `json:"minWidth,omitempty"` MinHeight int `json:"minHeight,omitempty"` MaxWidth int `json:"maxWidth,omitempty"` MaxHeight int `json:"maxHeight,omitempty"` }
Click to show internal directories.
Click to hide internal directories.