FrameRecorder()
This class works in a project you run on your own computer, but not in the examples you can start here in the browser. There is no file system, no video encoder and no OpenGL behind a web page, so calling it there tells you as much and does nothing.
The FrameRecorder class extends the Recorder class to provide functionality for saving frames of an applet as PNG files. It allows saving the current frame with a generated filename based on the frame number or taking a snapshot with a specified filename.
Usage example:
FrameRecorder recorder = new FrameRecorder("/path/to/output/folder");
recorder.saveFrame(); // Saves the current frame with a generated filename
recorder.snapshot("snapshot.png"); // Saves the current frame as "snapshot.png"
Syntax
Java
new FrameRecorder(outputFolder)