Components / Media

Video native

An inline video player with native controls.

A2UI basic
Video
Children
none
Loading the renderer…
Video rendered by the React renderer on Web
Web React
Video rendered by the SwiftUI renderer on iOS
iOS SwiftUI
Video rendered by the Compose renderer on Android
Android Compose
Video rendered by the gpui renderer on Desktop
Desktop gpui

View exponential-ui-video, painted by each native renderer.

PropTypeDefaultDescription
srcrequiredbindurl–The video URL (H.264 + AAC MP4 plays everywhere).
posterurl–A still shown before playback.
durationMsnumber–Known length for the scrubber.
autoplaybooleanfalseStarts muted playback on appear.
aspectRationumber1.7777778Width over height of the player box.
stylestyle–Extra Box styles for the player box.

No events, no slots. Children: none.

Role
group
Semantics
video with the platform's controls
KeysAction
Spaceplay/pause; ArrowLeft/ArrowRight: seek 5 s
Recipe parts
Video/rootVideo/controlsVideo/poster
Keyed by
autoplay:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover

Themes · Write a theme