jatui

MediaCapture

One-tap audio, selfie-video, or screen(+mic) recording — hands back a Blob, never owns the upload

Demo

Props

PropTypeDefaultDescription
onCapture(result: MediaCaptureResult) => void | Promise<void>-Called with the finished clip; may be async
modes('audio'|'video'|'screen')[]all threeWhich capture modes to offer
maxDurationMsnumber120000Auto-stop ceiling
labelstring"Record a note"Prompt text
hintstring-Secondary prompt text
compactbooleanfalseSuppress label/hint — for embedding in a larger field
disabledbooleanfalseDisable all record buttons