io.video.videokit.recorder.Recorder implementation keeps its internal state and
offers a way to register listener objects to listen to important events.
The recorder state can be retrieved with
recorder.state and, similar to our player
component, matches one of the constants in the
|Recorder is busy in some operation or transitioning from one state to another.|
|Recorder is showing the camera preview, not recording.|
|Recorder is recording the camera preview.|
|Recorder is in preview mode, previewing a previously recorded video.|
When recorder is transitioning from one state to another (that is, state is
you can check the state that is being transitioned to using
Recorder events are dispatched to a
io.video.videokit.recorder.RecorderListener that was
previously registered using
Listeners are very important to be up-to-date about the recorder state, handle errors and create a responsive UI. We describe the listener interface as comments in the interface description below.