Audio Player 4 block design & features
AudioPlayer4 is a now playing section for a record label or artist site, built with shadcn/ui and Tailwind CSS. A heading and short line introduce the releases, then a card shows the current sleeve with a record peeking out from behind it that turns slowly while music plays, along with the track name, the artist and the release it comes from.
Under the sleeve a waveform made of thin bars fills from left to right as the track plays. It can be clicked, dragged or stepped with the arrow keys to seek, and hovering previews where a click will land. Previous, play and next buttons sit below, an up next card lists the following tracks with their covers and lengths, and a sideways scrolling row of other releases lets visitors jump to any record, with small moving bars marking the one that is playing.
Playback runs on a simulated clock that starts on its own and moves through the queue, and each release can take an audioSrc to play real audio. Reduced motion visitors get a still record and a paused player. On phones the sleeve sits above the track details and the release row scrolls with snap points, which works well for indie labels, bands and artist portfolios.
