Now Playing
A music player taps play, likes the track, then scrolls synced lyrics that light up one line at a time. A free, MIT-licensed Remotion product scene.
$ pnpm dlx shadcn@latest add @remocn/now-playingUsage
// src/Root.tsx
import { Composition } from "remotion";
import { NowPlaying } from "@/components/remocn/now-playing";
const NowPlayingScene = () => (
<NowPlaying
title="Launch Day"
artist="Acme"
tint="#B8553A"
lyrics={["Shipped it at midnight", "and the build came green"]}
/>
);
export const RemotionRoot = () => (
<Composition
id="NowPlaying"
component={NowPlayingScene}
durationInFrames={600}
fps={60}
width={1280}
height={720}
/>
);A phone rises showing the player: a cursor taps play, the heart is liked, the lyrics panel opens and each line lights up in turn as the list scrolls. Pass title, artist, lyrics and tint (the gradient color); with variant="mini" the scene starts from a mini player that expands. Pass src for your own cover art, or omit it for the built-in artwork.
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props20
| Prop | Type | Default |
|---|---|---|
| title | string"Launch Day" Track title | |
| artist | string"remocn" Artist name | |
| playlist | string"Launch Week Mix" Playlist name in the playing-from line | |
| src | string— Cover art image URL; a built-in artwork shows when omitted | |
| tint | string"#B8553A" Color driving the gradient background | |
| lyrics | string[]DEFAULT_LYRICS Lyric lines highlighted one after another | |
| duration | number165 Track length in seconds for the progress readout | |
| variant | "full" | "mini""full" Start as a full player or a mini player that expands | |
| nowPlayingLabel | string"Now playing" Status beside the copy once the track plays. | |
| pausedLabel | string"Paused" Status beside the copy before the play tap. | |
| lineHold | number18 Frames each lyric line stays current. | |
| accent | string"#3B5BFD" Accent color for highlights, buttons and progress | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Solid fill in place of the gradient ground; pass "transparent" to drop it. | |
| fontFamily | string"Figtree" Typeface for the copy. Load the font in your project first. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| speed | number1 Playback speed multiplier for the whole timeline | |
| ground | GshPresetId— gradients.sh preset id for the backdrop shader | |
| groundParams | Partial<GradientParams>— Overrides for the backdrop shader parameters | |
- titlestring
Track title
Default
"Launch Day" - artiststring
Artist name
Default
"remocn" - playliststring
Playlist name in the playing-from line
Default
"Launch Week Mix" - srcstring
Cover art image URL; a built-in artwork shows when omitted
- tintstring
Color driving the gradient background
Default
"#B8553A" - lyricsstring[]
Lyric lines highlighted one after another
Default
DEFAULT_LYRICS - durationnumber
Track length in seconds for the progress readout
Default
165 - variant"full" | "mini"
Start as a full player or a mini player that expands
Default
"full" - nowPlayingLabelstring
Status beside the copy once the track plays.
Default
"Now playing" - pausedLabelstring
Status beside the copy before the play tap.
Default
"Paused" - lineHoldnumber
Frames each lyric line stays current.
Default
18 - accentstring
Accent color for highlights, buttons and progress
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Solid fill in place of the gradient ground; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Figtree" - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback speed multiplier for the whole timeline
Default
1 - groundGshPresetId
gradients.sh preset id for the backdrop shader
- groundParamsPartial<GradientParams>
Overrides for the backdrop shader parameters