RecordingFinishedReason

type RecordingFinishedReason = "stopped" | "max-duration-reached" | "max-file-size-reached"

Describes why a Recorder's recording finished, and was delivered to the onRecordingFinished callback passed to Recorder.startRecording(...).

In all cases, the resulting video file is fully written and usable - this type only communicates why the recording ended, so the caller can react accordingly (e.g. show a "max length reached" toast, or chain a follow-up recording).

On this page

No Headings