Interface MediaRecorder

All Superinterfaces:
javafx.event.EventTarget, MediaEngine
All Known Implementing Classes:
FXMediaRecorder, WebMediaRecorder

public interface MediaRecorder extends MediaEngine, javafx.event.EventTarget
The MediaRecorder provides functionality to easily record media, both on desktop/mobile and web platforms.

This class provides the controls for recording media. MediaRecorder does not contain any visual elements so must be used in combination with the MediaView class to view the video stream from the camera device. After the recording is complete, use then the MediaSource class to retrieve the recorded media.

MediaRecorder provides the start(), pause(), and stop() controls as recording functionalities. Use enable() to request access to the camera device and enable the recording controls.

All operations of a MediaRecorder are inherently asynchronous. Use the setOnReady(EventHandler) to get notified when the MediaRecorder is ready to record. Other event handlers like setOnStart(EventHandler), setOnPaused(EventHandler), setOnResume(EventHandler), setOnStopped(EventHandler) and setOnDataAvailable(EventHandler) can be used to get notified of the corresponding events.

Author:
Besmir Beqiri
See Also: