Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- startVideoRecording :: BaseVideoConstraints context m => FilePath -> (Word, Word, Int, Int) -> VideoSettings -> m ProcessHandle
- endVideoRecording :: (MonadLoggerIO m, MonadCatch m) => ProcessHandle -> m ()
- startFullScreenVideoRecording :: (BaseVideoConstraints context m, MonadMask m) => FilePath -> VideoSettings -> m ProcessHandle
- startBrowserVideoRecording :: (BaseVideoConstraints context m, MonadThrow m, HasWebDriverSessionContext context, WebDriver m) => FilePath -> VideoSettings -> m ProcessHandle
- data VideoSettings = VideoSettings {
- x11grabOptions :: [String]
- avfoundationOptions :: [String]
- gdigrabOptions :: [String]
- hideMouseWhenRecording :: Bool
- logToDisk :: Bool
- defaultVideoSettings :: VideoSettings
- fastX11VideoOptions :: [String]
- qualityX11VideoOptions :: [[Char]]
- defaultAvfoundationOptions :: [String]
- defaultGdigrabOptions :: [String]
Documentation
startVideoRecording :: BaseVideoConstraints context m => FilePath -> (Word, Word, Int, Int) -> VideoSettings -> m ProcessHandle Source #
Record video to a given path, for a given rectangle specified as (width, height, x, y).
endVideoRecording :: (MonadLoggerIO m, MonadCatch m) => ProcessHandle -> m () Source #
Gracefully stop the ProcessHandle
returned by startVideoRecording
.
Helpers
startFullScreenVideoRecording :: (BaseVideoConstraints context m, MonadMask m) => FilePath -> VideoSettings -> m ProcessHandle Source #
Wrapper around startVideoRecording
which uses the full screen dimensions.
startBrowserVideoRecording :: (BaseVideoConstraints context m, MonadThrow m, HasWebDriverSessionContext context, WebDriver m) => FilePath -> VideoSettings -> m ProcessHandle Source #
Wrapper around startVideoRecording
which uses WebDriver to find the rectangle corresponding to the browser.
Configuration
data VideoSettings Source #
VideoSettings | |
|
defaultVideoSettings :: VideoSettings Source #
Default video settings.
fastX11VideoOptions :: [String] Source #
Default options for fast X11 video recording.
qualityX11VideoOptions :: [[Char]] Source #
Default options for quality X11 video recording.
defaultAvfoundationOptions :: [String] Source #
Default options for AVFoundation recording (for Darwin).
defaultGdigrabOptions :: [String] Source #
Default options for gdigrab recording (for Windows).