Arc
ComponentsBlocksDocsPricingTry the demo
Introduction
Installation
Theming
Motion
AI and MCP
Changelog
Metrics dashboard
KPI drilldownNew
Metric explorer
Revenue explorer
MRR waterfall
Cohort retention
Usage forecast
Journey flow
Connected scatterNew
Market terminalNew
Budget varianceNew
Small multiplesNew
Line replayNew
AI chatNew
AI composer
Agent runNew
SidebarPro4
Page header
Command palette
Notification center
Empty states
Login and sign up5
OTP input
Multi-step formPro
Settings page
Security settings
Billing overview
Usage billingNew
Team members
Invite peopleNew
Team directory
Roles and permissions
API keys
Webhooks
Integrations
Plan comparison
Pricing calculatorNewPro
Usage pricingPro
Cart drawerNewPro
Checkout summaryNewPro
Invoice studio
Wallet card
Product listingNew
Product detailNew
Inbox triage
Support conversation
Support widget
File upload
Media playerPro
Week calendarNew
Availability picker
Project board
Release readiness
Hero sectionNew
Hero signupNewPro
Scroll storyNewPro
Spotlight gridNewPro
Feature bentoNewPro
Comparison tableNew
Logo marquee
Studio perspectivesPro
Stats bandNew
Changelog feed
FAQ sectionNew
Contact sectionNew
Team showcasePro
Blog gridNew
Site headerNew
Site footerNew
CTA sectionNew
Newsletter signupNew
Revenue globe
Customer galaxy
Semantic zoom
Layout morph
What’s new80 new
BlocksMedia player

Media playerPro

An audio player with a living playlist and complete playback controls.

Live block · sample data

When to use

  • A small audio collection such as a podcast, sample pack, or playlist.
  • Pages that need a full player with seek, skip, volume, and a track list.

When not to use

  • Use now-playing for a compact now playing widget.
  • Use transcript-studio when the audio needs a synced transcript.
  • Use voice-recorder for recording audio.

Installation

Pro source and install commands unlock with a Pro plan.

Usage

Use this for an audio collection where people need clear transport, progress, and volume controls. Replace the sample local loops with your media.

example.tsx
1import { MediaPlayerBlock } from "@/registry/blocks/media-player/media-player";2 3export function Listen() {4  return <MediaPlayerBlock />;5}
Built fromButtonProgressMotion

API reference

MediaPlayerBlock

An audio player with cover art, a three-track playlist, seek bar, skip, and volume with mute. Takes no props; the tracks are short loops synthesized in the browser as WAV blobs, and covers come from lib/media photos.

No props.

Keyboard interactions

Arrow keys
Adjust seek position and volume on the focused range inputs.

Accessibility

  • Uses a native audio element with range inputs for seek and volume.
  • Transport and playlist buttons have labels such as "Play <title>" and "Next track"; the current track has aria-current.
  • Seek and volume ranges carry aria-valuetext such as "0:12 of 0:24" and "70%". The mute button's label switches between Mute and Unmute audio.

Motion

  • The selection rail glides to the current track with a shared layoutId on the gentle spring; playing bars pulse beside it.
  • The cover crossfades and the title rises in when the track changes; the play icon swaps with a short scale and blur.
  • Reduced motion removes the glides, swaps, and bar animation.

Responsive behavior

  • Below 420px viewport width the padding tightens, the cover takes a 1.7 ratio, transport buttons shrink, and the volume slider narrows to 64px.
  • Seek and volume are native range inputs, so touch and keyboard work without extra handling.

Performance

  • Uses a native audio element; position updates come from timeupdate, not a frame loop.
  • The demo tracks are generated as WAV blobs in the browser; replace them with real audio URLs in production.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use for a small audio collection such as a podcast, a sample pack, or a playlist.
  • Replace the tracks array and renderTrack() with real audio URLs set on the audio element, and the cover ids with your images.
  • The default export is MediaPlayerBlock.
/components/blocks/media-player/markdown

The full library index for assistants is at /llms.txt.

Related

Now playingProComponentGrow a mini player into the full player in one continuous morph.SliderComponentPick a value or a range on a track that follows your finger.Voice recorderProComponentRecord with a live waveform, review and scrub, then send the take into the thread.
PreviousMetrics dashboardNextSupport conversation
Arc · 75 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown
A calm sea at dusk with a low island on the horizon

Morning tide

Arc Sessions · Original loop

0:000:24

Playlist