Package org.selenide.videorecorder.core
Interface VideoConfiguration
- All Known Implementing Classes:
SelenideVideoConfiguration
public interface VideoConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionintcrf()CRF operates on a scale from 0 (lossless) to 51 (lowest quality), with lower values indicating higher quality and larger file sizes.intfps()Frames per seconds 24fps is a standard for movies and TV shows, but processing this amount of frames causes too high CPU usage.booleanIs it needed to keep the taken screenshots after the video has been created from them.mode()Should the videos be recorded for all tests, or only for annotated withVideo.saveMode()Should the videos be saved for all tests, or only for failed tests.booleanIs video recording enabled.The folder to save the videos tolongTimeout for processing a video (in milliseconds) Default value: 5 minutes (300000 ms)
-
Method Details
-
videoEnabled
boolean videoEnabled()Is video recording enabled. Use it to globally disable video recording in all tests (e.g. in some specific environments, build types etc.)- Returns:
- true by default
-
videoFolder
String videoFolder()The folder to save the videos to- Returns:
- "build/reports/tests" by default
-
mode
RecordingMode mode()Should the videos be recorded for all tests, or only for annotated withVideo.- Returns:
RecordingMode.ANNOTATEDby default
-
saveMode
VideoSaveMode saveMode()Should the videos be saved for all tests, or only for failed tests.- Returns:
VideoSaveMode.FAILED_ONLYby default
-
fps
int fps()Frames per seconds 24fps is a standard for movies and TV shows, but processing this amount of frames causes too high CPU usage. -
crf
int crf()CRF operates on a scale from 0 (lossless) to 51 (lowest quality), with lower values indicating higher quality and larger file sizes. -
videoProcessingTimeout
long videoProcessingTimeout()Timeout for processing a video (in milliseconds) Default value: 5 minutes (300000 ms) -
keepScreenshots
boolean keepScreenshots()Is it needed to keep the taken screenshots after the video has been created from them. Default value: false
-