Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Recorder

johnjbarton edited this page Apr 23, 2013 · 2 revisions

States

  1. Ready; green block end of scrubber, black dot.
  2. Recording; two green blocks, red dots, around turns.
  3. Recorded; two green blocks |> and X
  4. Playback; like recorded plus two green blocks ( and )

Transitions

  1. Record: ready -> recording. Triggered by ready buttons.
  2. Stop: recording -> recorded. Triggered by recording buttons or reload.
  3. Play: recorded -> recorded. Triggered by |> or reload-plus-recognizer
  4. Erase: recorded -> ready. Triggered by X

Segmented Array Implementation

The message array has three parts, 1) before, 2) recorded, 3) after. Ready only has #1. Recording fills #2. Recorded fills #3. UI between segments.

Pro: works. Con: spreads message array across logScrubber and recorder.

Special Event Implementation

One message array, recording as special events. The play/erase buttons are inserted as events with type="recorder-play" and type="recorder-erase".

Pro: message array is uniform, not directly involving recorder.

Clone this wiki locally