Skip to content

Video

A video player: the poster until play, then the platform player with its controls.

Group: Media · Kind: native

example
0:12

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-video on Web
exponential-ui-video on iOS
exponential-ui-video on Android
exponential-ui-video on Desktop
Prop Type Required Bindable Description
src url yes yes The video URL (H.264 + AAC MP4 plays everywhere).
poster url – – A still shown before playback.
durationMs number – – Known length for the scrubber.
autoplay boolean – – Starts muted playback on appear. Default false.
aspectRatio number – – Width over height of the player box. Default 1.7777778.
style style – – Extra Box styles for the player box.

None.

None.

none

The basic catalog’s Video renders as Video.

A native component: every renderer paints it directly.

Role: group

video with the platform’s controls

Keys Action
Space play/pause; ArrowLeft/ArrowRight: seek 5 s

Recipe parts: Video/root Video/controls Video/poster

Keyed by: autoplay :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Image · ZoomableImage · Icon · AudioPlayer · Avatar · QrCode · Carousel · Mosaic