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

Open live AppBridge playground →
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.json

This 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

PropTypeDescription
srcstringAudio URL. Without it the card is a static preview.
peaksnumber[]Waveform values 0–1. A stable placeholder is generated if omitted.
durationnumberSeconds, shown before metadata loads.
onRegenerate / onDownload() => voidShow the matching icon buttons.