Skip to content

VideoPlayer

Stable

Plays a generated clip and lets you act on the exact frame you paused on.

Also known as video, media player

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Generated take with frame actions

Take 3, harbour at dawn

8 seconds, 24 frames a second

0:00 / 0:08
Paused at 0:00, frame 1

No file is needed: the player draws a stand-in scene and simulates time. Press Play, pause anywhere, then step frames with the buttons, or with comma and period while focus is in the player. The paused-frame actions return the time and frame number.

When to use it

Lets someone watch a generated take, stop on the exact frame they want and use it, with every state in words.

Made of: Title · AI label or provenance · State or subtitle · Frame (16:9, 9:16 or 1:1) · Working edge while generating · Captions · Scrubber · Play · Frame back and forward · Time and frame · Loop · Mute · Captions toggle · Full screen · Paused-frame actions · Transcript · Keyboard shortcuts

Use it for

  • Reviewing a take the AI made, then using a frame as the start of the next shot.
  • Picking the point to extend or edit from.
  • Showing a clip with captions and a transcript as its text alternative.

Not for

Do and avoid

Take 2, harbour at dawn

Could not play

This clip could not be loaded. Credits for this take were returned.

0:00 / 0:08
Take 2, harbour at dawn: could not play. Credits for this take were returned.
Do. Calm words say what failed and that the credits came back.

Take 2, harbour at dawn

Could not play

This clip could not be loaded. Your prompt broke the rules.

0:00 / 0:08
Take 2, harbour at dawn: could not play. Your prompt broke the rules.
Avoid. Blame and no word on credits leave people upset and unsure.

Do

  • Wait for a press before playing anything.
  • Offer frame actions that match the next step, such as Use as start frame or Extend from here.
  • Label every AI clip and say what the file carries.
  • Give a transcript or captions for clips with speech.

Avoid

  • Don't autoplay, or play on hover under reduced motion.
  • Don't colour the player, the scrubber or the progress with the AI colour. Only the label and the working edge use it.
  • Don't show a countdown or a made-up percentage while generating.
  • Don't use red or blame words for a blocked take. Say what was blocked and whether credits came back.

On a phone

  • The Play button is 44px; every other control grows to 44px on touch screens. The controls wrap on narrow screens.
  • The scrubber's hit area is 44px tall even though the track is 4px.
  • Tap the frame to play or pause. Double-tap its left or right side to go back or forward 2 seconds.
  • Paused-frame actions sit in a row under the controls and wrap to full width, with 44px buttons.
  • A 9:16 clip is capped in width so it does not push the controls off a phone screen.

Seen in products

  • Google Flow: Shift with an arrow pauses and steps one frame.
  • Sora's Loop editor had two handles for the start and end of the loop.
  • The best players let you pause on a frame and save it, extend from there or edit from there.
  • Flow labels every output with an invisible SynthID watermark; the visible watermark is a toggle.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started