← Back

Scrubber

[intermediate]

Transport control over an ordered position: track, playhead, marks, clock, play/pause and a speed ladder. One widget for asciicast recordings, time-travel snapshots, and recorded web frames

Scrubber Demo

Transport control over an ordered position: track, playhead, marks, clock, play/pause and a speed ladder. One widget for asciicast recordings, time-travel snapshots, and recorded web frames

For the full interactive experience:

$ mix raxol.playground

Code
{:ok, scrubber} =
  Scrubber.init(
    id: "replay",
    min: 0,
    max: @frames - 1,
    position: 0,
    marks: @marks,
    width: @track_width,
    playing?: true,
    speed: 1.0,
    elapsed_ms: 0,
    duration_ms: @frames * @tick_ms
  )
demo j/k prev/next / focus demo esc back 12/42 demos