METHRAX
Developer Tools / @methrax/voice-recorder / Recording & Features

Recording & Features

Interaction modes

The recorder supports two primary interaction models:

  • click — explicit start, pause/resume and stop controls.
  • hold — press-and-hold workflows where the consumer can start on pointer down and stop on pointer release.

Microphone discovery

The library supports automatic microphone discovery, permission-based device-label unmasking and hardware-change refreshes. The device list is refreshed when the platform emits devicechange and degrades gracefully where the event is unavailable.

Recording lifecycle

stateDiagram-v2
  [*] --> Idle
  Idle --> Recording: start()
  Recording --> Paused: pause()
  Paused --> Recording: resume()
  Recording --> Finalizing: stop()
  Paused --> Finalizing: stop()
  Finalizing --> Ready: Blob assembled
  Ready --> Idle: discard / clear

Replay and seeking

The ready-to-use player supports replay, timeline seeking, file download and discard. m-audio-player can also be used independently with any application-owned audio URL or recorded Blob.

Showcase scenarios

The package showcase covers default capture, token themes, replay/download, standalone player integration, projected player actions, player replacement, visibility controls, hardware selection, host controls and hold recording.