Skip to content

AudioPlayer

An audio player with a title and a play control.

Group: Media · Kind: native

example
Episode 12
0:00 / 0:00

Open in the playground

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

exponential-ui-audio-player on Web
exponential-ui-audio-player on iOS
exponential-ui-audio-player on Android
exponential-ui-audio-player on Desktop
Prop Type Required Bindable Description
src url yes yes The audio URL.
title string – – What is playing.
durationMs number – – Known length for the scrubber.

None.

None.

none

The basic catalog’s AudioPlayer renders as AudioPlayer.

A native component: every renderer paints it directly.

Role: group

audio with the platform’s controls

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

Recipe parts: AudioPlayer/root AudioPlayer/controls AudioPlayer/track

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

Themes · Write a theme

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