Interface DesktopVideoRecordingProvider
public interface DesktopVideoRecordingProvider
SHAFT-owned contract for desktop screen-recording implementations.
Implementations may use optional recording and encoding libraries, but callers in
shaft-engine interact only with JDK and SHAFT-owned types through this interface.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReports whether this provider is recording on the current test thread.voidStarts recording the desktop for the current test thread.stopRecording(boolean testPassed, String recordingName) Stops the active desktop recording and returns its encoded contents.
-
Method Details
-
startRecording
void startRecording()Starts recording the desktop for the current test thread. -
stopRecording
Stops the active desktop recording and returns its encoded contents.- Parameters:
testPassed- whether the current test passed, used by providers that conditionally retain recordingsrecordingName- unique name to use when saving the recording- Returns:
- the encoded recording, or
nullwhen no recording is available
-
isRecording
boolean isRecording()Reports whether this provider is recording on the current test thread.- Returns:
truewhen a desktop recording is active; otherwisefalse
-