Media player
An inline audio card with play/pause, a waveform you can click to seek, the duration and optional regenerate/download actions.
Display modes: inline · Source: MCP Apps for Claude kit · Inline card / Media card
Can you take care of this?
Here's what I found:
App
Podcast IntroRachel · Warm
0:27
Inline height 0px fits
Playback stays inline, no new window
Waveform is keyboard-seekable (←/→)
Two actions at most
#Installation
To get started, add the component to your project via the shadcn CLI:
$npx shadcn@latest add https://mcpblocks.dev/r/media-player.jsonThis also installs host-tokens, adding Claude's CSS variables and utilities like bg-host-bg to your stylesheet.
#Basic example
import { MediaPlayer } from "@/components/media-player"
<MediaPlayer
title="Podcast Intro"
subtitle="Rachel · Warm"
src={result.audioUrl}
peaks={result.peaks}
onRegenerate={() => app.sendMessage({ role: "user", content: [{ type: "text", text: "Try a different voice" }] })}
onDownload={() => app.openLink({ url: result.audioUrl })}
/>#Component API
| Prop | Type | Description |
|---|---|---|
| src | string | Audio URL. Without it the card is a static preview. |
| peaks | number[] | Waveform values 0–1. A stable placeholder is generated if omitted. |
| duration | number | Seconds, shown before metadata loads. |
| onRegenerate / onDownload | () => void | Show the matching icon buttons. |